View Full Version : help with buttons!!
LoveTheX850
02-22-2007, 05:05 PM
k, i am posting this in the beginner forum and maybe i will be able to get some help.
I am relatively new at flash, and i need to be able to make my buttons go to the next scene. I have no idea how to do this.
Another thing that would be nice would be able for a user-controlled background. So that the user would be able to change the background to there liking.
ty
AdsRUsKC
02-23-2007, 06:13 AM
I don't know a whole bunch, but put one of the following on your button:
on (release) {
nextFrame();
}
OR
on (release) {
gotoAndPlay(frame#);
}
Use the same kind of button to take your 'background movie clip' to a different frame with a different background.
Babaloo
02-23-2007, 08:33 PM
hey!
So I made a button symbol, placed it on stage and named the instance "buttoneCena1". Make sure to set the fill frame on the button instance timeline =)
I have two scenes. Scene1's first frame is where the button is. Scene2's first frame is labeled "duo". Remember to stop() both frames... On the root's/stage Scene1 first frame, place this:
buttoneCena1.onRelease = function (){
gotoAndStop ("Scene2","duo")};
stop();
The first line creates a function for the instance button's "buttoneCena1" with the onRelease handler. To call Scene2, write its name in quotes, followed by a comma and the frame label or number. I prefer to label the frames instead of using the default numbering. This way, if you move/copy/paste the frame it will still find the right target.
If you prefer to place the action on the button:
on (release) {
gotoAndPlay("Scene2","duo");
}
There's a nice background tute on gotoandlearn.com :)
LoveTheX850
02-27-2007, 04:02 AM
tx, that last one worked
if you want to see what ive done check it out...
idk how good i am so u tell me :p
Heres the new one:
its witht the next scene actionscript attached
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.