Search  

TRIGGERING MULTIPLE ACTIONS HELP!

HomeForumsHelp NeededTriggering multiple actions Help!

Hi All

Just wondering if anyone could help me out with an action script issue. Basically i want to create 2 sets of actions for the one object/Instance. For example i want to create a series of buttons so that when the user clicks on one of the say 6 buttons it it will go to and play out a generic closing animation on the timeline. Then when thats completed i want to send the playhead to another section on the timeline, that has a bunch of load movie clip instances and depending on which button you select on the initial screen you will load up different external images/movies/text. Can anyone help me out with this or point me in the right direction?

Cheers!!

Posted about 1 month ago
40959 ranfirefly
87 posts
Exclusive author Item was featured Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

contact me through my email. :)

Posted about 1 month ago
19189 Palehosefan
30 posts
Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

Have a variable like numSelected that is initialized to 0.

var numSelected:Number = 0;

button1.onRelease = function(){ numSelected = 1; gotoAndPlay(whatever); }

button2.onRelease = function(){ numSelected = 2; gotoAndPlay(whatever); }

etc etc

Then at the “whatever” part of the timeline, have

if(numSelected ”==” 1){ do something } else if(numSelected ”==” 2){ do something else }

etc etc

Posted about 1 month ago

Cool, thanks ill give it a shot.

Posted about 1 month ago