Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsAlright, so this is probably a ridiculously easy question and has probably been answered 100 times over, but I've looked at endless tutorials, including ones that just say "copy this code" and none of it works, so here I go:
I want to make a flash document that will play 20 different scenes. The scenes are independent of one another (will stop when they reach their end rather than continuing to the next, etc.), and are selected for viewing via a navigation bar on the left side (with 20 buttons respective of each scene, obviously).
So, I've tried numerous code to try and make the first frame of each scene recognize all the buttons (they are the same for each scene), and make each button skip to it's respective scene. However, nothing seems to work. Even the "stop();" function ceases to work as soon as I try to enter more code to make the buttons work.
I'm using actionscript 3, which has been proving obnoxiously inconsistent. Any help would be appreciated, guys. Oh, and sorry if this is the wrong forum to ask this question. If it is, let me know, and I'll try and get it moved. Thanks in advance.
Made some headway. It appears my problem involves the way I assign functions to buttons, as it give me a duplicate function return error. My framecode looks somehting like this:
button01.addEventListener(MouseEvent.MOU SE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Scene 01");
}
button10.addEventListener(MouseEvent.MOU SE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Scene 10");
}
stop();
Any ideas what's causing that?
my Tumblr
My Website
My Soundcloud
I just end up switching to Actionscript 2 for buttons, links, and other interactivity. However I am a fan of the Bone tool, which can exclusively be used in Actionscript 3.