Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92406

What am I doing wrong in actions? Please help.

$
0
0

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


Viewing all articles
Browse latest Browse all 92406

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>