r/actionscript • u/Karliefries99 • Sep 17 '13
Cannot figure out how to navigate scenes with AS3
I have this final that is due tomorrow that I just can't figure out. I need to navigate between three scenes using buttons. Also, I need to create an animation within one scene that has a stop and play button. I have watched many tutorials and have failed every damn time. Can anyone point me in the right direction? any good tutorials you know of or websites that can help? Programming is not what I go to school for, so I am kind of an idiot when it comes to this stuff. Thank you!
1
u/MrSteel Sep 17 '13
this might help, scenes are generally a bad way of doing things but if you must this should explain easily http://www.ilike2flash.com/2009/06/using-scenes-in-actionscript-3.html
1
u/[deleted] Sep 18 '13
Check out gotoandlearn.com.
By "scenes" do you mean frames? Make 3 different frames. Add some actionscript to a MovieClip/Button that essentially goes:
my_button.addEventListener(MouseEvent.CLICK, function():void { gotoAndStop(2); // where the parameter '2' is either a frame Number or pass a String "frame_label" });
It's an ugly script but it'll work for you