This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2006 > Timeline control





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Timeline control
krepid

2006-04-24, 6:35 pm

Hello.

I have been having an issue with Flash buttons and actionsript. I am using
Flash MX 2004... I have a file with 4 or more scenes. There are stop();
actions to make sure that the user has a choice and can interact with the
content of the file. Within each scene are buttons to help the user navigate to
each additional scene he or she selects.

Unfortunately, the current actionscript that I have applied to the buttons
returns incorrectly or works once and then changes where it is supposed to go.
I have checked to make sure that there aren't any stray actions in the frames
and that the actions for the Flash buttons are only applied to the buttons
themselves (objects).
I am using the following ActionScript to control the navigation between frames
or scenes. ---> example

on (release){
gotoAndStop("Scene 2" , 'frame 1');
}

I have tried gotoAndPlay() as well, but again, either it works or it sifts
through all of the scenes without any rhyme or reason. Anyone know the correct
way to point to other scenes or frames in Flash that are reliable. This used
to work for me in the past.

Any suggestions would mean a lot to me.

Thanks,

Keith

shyaway

2006-04-24, 6:35 pm

is there a chance that your onRelease is routing it elsewhere? try adding _root to your goto and see what happens
krepid

2006-04-25, 6:42 pm

Hello.

I tried _root.gotoAndPlay(); and had the same results as gotoAndPlay();

Is there anything else I should/could try


Thanks,

Keith
YenLo

2006-04-25, 6:42 pm

That script should work ;/ but i had the same problem week ago. Send me
your .fla file and I will try to help you.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews