flash actionscript:
ok, this is my first flash ive ever made and im trying to make a button go from scene one to scene 5. i typed in the action script that the help file says but it keep coming up with errors. can someone give me the actionscript for a button to go from scene 1 to 5 please???
If you mean frames, then on your button: on(release){ gotoAndPlay(5); } if you think you mean scenes... take this hint now. Don't use scenes and sceneLabels for navigation. It is very buggy and may result in lots of errors and headaches. Give the frame that you want to goto a frameLabel and use that for your navigation. Eg. frameLabel : "enterSite" on(release){ gotoAndPlay("enterSite"); } hope that is of assistance cheers,
i dont see how navigating via scenes is buggy... on (release){ gotoAndStop("Scene 2"); } on (release){ gotoAndStop("Scene 3"); }
It is buggy because unless fixed in 2004 (which I don't have), the scene labels don't compile in the .SWF. This results in the scene labels being lost as a reference point and substituted as frame numbers... this can cause problems. It doesn't always but can be unpredictable. Now the added problem is that the documentation suggests that the usage can be : on(release){ gotoAndPlay("Scene 2",5); } in the compiled .SWF this will lead to referencing two frame numbers... You can continue using it that way and good luck to you... but if you take the time to read the thousands of posts in the archives on this, you will find that more often than not, scenes means headaches. You choose what is right for you however.
Don't see what you're looking for? Try a search.
|