Sign in to follow this  

Flash Action script: Real simple issue....

Recommended Posts

ok my only issue is to switch to a specified frame on a specified scene. I was lead to belive that if i typed: gotoAndPlay("scene 2",2); or gotoAndPlay("scene 2","frame 2"); that i would be taken to the second frame of scene 2, seems logical right? when i compile and run i test to see if i will be taken to frame "2" in the second scene, but nope im taken to frame "1". ignoring the ,2 that i put in, no output errors or anything. im sure its just simple syntax... but at this point im oblivious, please help :)

Share this post

Link to post
Share on other sites
hi kid4today

Although i know AS quite well it has been a year or so since i have touched it so bare with me if u can :)

ok first the syntax you are using seems correct, so i am guessing it might be 1 of 2 things:

1) Your pathways are incorrect,

2) It is going to the frame you want but it is going so fast you are not seeing it.

Try sticking gotoAndStop("scene 2",2);

Just to see if it is actually going to the frame you want. If that does not work then i am thinking is is the pathways, for example the scene you are going to is embedded within another movieclip, therefore you are trying to play the wrong timeline, try something like

_root.gotoAndPlay("scene 2",2);

hope this helps any


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this