Skip to main content
Ania B. Z.
Participant
June 28, 2014
Question

What am I doing wrong in actions? Please help.

  • June 28, 2014
  • 1 reply
  • 275 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 28, 2014

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

test.