Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

What am I doing wrong in actions? Please help.

Explorer ,
Jun 28, 2014 Jun 28, 2014

Hi,

This is first time I'm using Flash Professional CC, so I'm complete newbie and I do not wish to continue to learn that particular program in the future, so please do not point me to the learning program videos.

I'm trying to make simple presentation containing only 4 frames. For that purpose I followed that tutorial:

How to Create an Adobe Flash Slide Show

I'm positive that I made everything correctly to the point where Actions are made.

I'm not a programmer and I have no idea about coding.

When I put in actions:Frame 1 this:

"stop();

button1.addEventListener(MouseEvent.CLICK,showpic1);

button2.addEventListener(MouseEvent.CLICK,showpic2);

button3.addEventListener(MouseEvent.CLICK,showpic3);

button4.addEventListener(MouseEvent.CLICK,showpic4);"

The test gives me changing incredibly fast frames without end.

After taking next step from that tutorial above:

"stop();

button1.addEventListener(MouseEvent.CLICK,showpic1);

button2.addEventListener(MouseEvent.CLICK,showpic2);

button3.addEventListener(MouseEvent.CLICK,showpic3);

button4.addEventListener(MouseEvent.CLICK,showpic4);

function showpic1(Event:MouseEvent):void{

gotoAndStop("pic1");

}

function showpic2(Event:MouseEvent):void{

gotoAndStop("pic2");

}

function showpic3(Event:MouseEvent):void{

gotoAndStop("pic3");

}

function showpic4(Event:MouseEvent):void{

gotoAndStop("pic4");

}"

I'm getting only first frame and nothing more happens.

Could you please help me straighten up my code?

Thanks,

Ania

TOPICS
ActionScript
250
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 28, 2014 Jun 28, 2014
LATEST

the double quotes before stop() and the double quotes at the end after gotoAndStop("pic4");} should be removed.

test.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines