Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Load A Button Action 1

Status
Not open for further replies.

giulian

Technical User
Jul 27, 2003
6
AU
Hi, I know this is probably simple. I have several scenes and in my flash file and on some of the scenes there are buttons which when pressed perform an animation with a picture.

Can anyone please tell me the code or how to simply program the file so when u go on a certain page it presses / loads one of the buttons automatically.

For example just say you go to scene 2 and on scene 2 there are six buttons, how do you program it so as soon as you go to scene 2 it automatically presses / loads what button 1. so the picture in button one automatically displays without the user having to press the button.

Thanks in advance
Giulian
 
Write an action outside of the button on Frame 1 of Scene 2 that does the same thing that the button for that frame does.

So if your button code is:
Code:
on(release){
   loadMovieNum("scene2.swf",1);
}

You would add the following code to frame one of the scene 2 timeline.

Code:
loadMovieNum("scene2.swf,1);

Hope it helps.


Wow JT that almost looked like you knew what you were doing!
 
Thanks for you help, that worked great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top