Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : Scene Change Using Buttons


Bluebolt44
5/7/2004 8:33:27 PM
I do not know how i can use a button to change scenes. can anyone write me a code to send a button to a scene called football with the frame called frame1 ?

thankyou

Jack.
5/7/2004 9:29:09 PM
give frame#1 of your football scene a frame label - say - football1,
give your button an instance name - say - footballBtn
in the same frame as the button appears, add a frame script

footballBtn.onRelease = function(){
gotoAndStop("football1");
// this assumes that your button is on the main timeline
};

hth
Pasamio
5/29/2004 9:08:45 AM
on (release) {
gotoandplay("scenename", 1);
}

AddThis Social Bookmark Button