Jump to content


Photo
- - - - -

Make Your Button Link, to another page, frame, scene


  • Please log in to reply
No replies to this topic

#1 el boricua design

el boricua design

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 02 May 2007 - 07:02 PM

so you got yourself a button made. and you want it to link to another page on your site, another frame or another scene. well its actually really easy.

linking to another page on your site.

Step 1.
click on your button and open up the actions panel (f9).
Step 2.
insert this code.


on (release) {
getURL(index.htm, _blank);
}

now of course you will change the page it links to and if you dont want it to appear in another window just change the _blank to _self.

linking to another frame.

there are a few different ways to do this.
Step1.
click on your button and open up the actions panel (f9).
Step 2.


insert one of the following codes they will be explained after shown.
on (release) {
gotoAndPlay(4);
}


on (release) {
gotoAndStop(4);
}


on (release) {
nextFrame();
}


on (release) {
prevFrame();
}

ok pretty much say what they do. the first one. goto and play (4) means like it says. make the movie goto frame 4 and the movie from there. change the 4 to another number to go to a dif frame.

gotoAndStop is almost the same thing except when the movie goes to frame 4 it wont play it will just sit on frame 4.

nextframe is the same thing as saying gotoAndStop to the frame after the current.

prevFrame is the same thing as nextFrame except it goes to the frame before the current and stops.

going to another scene
so you got a few scenes in you movie and you want to know how to link them. well its pretty easy. like going to a dif frame there are 4 ways to do it.

on (release) {
gotoAndPlay("scene2", 1);
}



on (release) {
gotoAndStop("scene2", 1);
}



on (release) {
nextScene();
}



on (release) {
prevScene();
}



they all do the almost the exact same thing as going to another frame except one dif on the gotoAndPlay/Stop. where it says scene2 thats what i named the scene so if the scene is labeled runsaway i would have runsaway instead of scene2. there is also "" around it. then the 1 next to that is what frame in the scene you want to go to. so you dont have to go to the start of the scene.

hope this helps




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users