SCENE HELP!!!
7 posts
Page 1 of 1
I am working in flash to make my "The Red Man" game better and i was wondering how to make a startup menu like play and instructions, but i did that and in the actionscript for the play button i put this in:
Code: Select all
i tested the movie and i clicked play, and nothing happenedon(press){
nextscene();
}
This is a signature.
I am working in flash to make my "The Red Man" game better and i was wondering how to make a startup menu like play and instructions, but i did that and in the actionscript for the play button i put this in:
on(press){Hey
nextscene();
}
It needsto be
Code: Select all
on (Press) {
gotoAndStop("Scene 2", 1);
}
Dont forget to have a stop at the first frame in frame 1 of the second Scene else it will just flicker

hope this helps
Chris
hungryhounduk wrote:I am working in flash to make my "The Red Man" game better and i was wondering how to make a startup menu like play and instructions, but i did that and in the actionscript for the play button i put this in:on(press){Hey
nextscene();
}
It needsto beCode: Select allon (Press) { gotoAndStop("Scene 2", 1); }
Dont forget to have a stop at the first frame in frame 1 of the second Scene else it will just flicker
hope this helps
Chris
It still doesnt work, i am using actionscript 2.0
This is a signature.
Hey
That code was from a new Flash file i did just to prove it worked then i pasted up the code :?
All i had on Scene 1 was a Button with that code linking to Scene2, and yes i an too using ActionScript 2.0
so the error is your end not my end
FLASH SWF AND FILE BELOW
Chris
That code was from a new Flash file i did just to prove it worked then i pasted up the code :?
All i had on Scene 1 was a Button with that code linking to Scene2, and yes i an too using ActionScript 2.0

so the error is your end not my end
FLASH SWF AND FILE BELOW
Chris
You do not have the required permissions to view the files attached to this post.
hungryhounduk wrote:HeyHow kind of you to make a example file
That code was from a new Flash file i did just to prove it worked then i pasted up the code :?
All i had on Scene 1 was a Button with that code linking to Scene2, and yes i an too using ActionScript 2.0
so the error is your end not my end
FLASH SWF AND FILE BELOW
Chris

DJ, try to make another one and try the code, if it works then the problem is with the game file.
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
This is a little different way but see if this works put this code into your button
Code: Select all
Then go to The scene you want to play and click on the first frame in you action layer. Then go to the frame's properties panel(Ctrl+F3), look for for the textbox with the label "Frame" above it and put GamePlay into it. Lastly, got to action(F9) of that frame which is now labeled GamePlay and put this code into this the actions panel on (release) {
_root.gotoAndStop("PlayGame");
}
Code: Select all
And if that does not work then something is wrong with your Flash game.onLoad = function () {
stop();
};
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023