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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button that loads an instance.

Status
Not open for further replies.

Iluvatar

Technical User
Feb 28, 2001
14
MX
Hi everyone!.

How can I make a button load an instance and run an animation at the same time?.

I figure I should use instance properties, in this case visibility. How do I do it?.

Thanks in advance.

Iluvatar.
 
if you mean how do you have a button load a mc that plays an animation you can do this..create the mc..in the first frame leave it blank with a stop action(thus hiding the animation until it is called)..put these actions in the button..

on (release) {
tellTarget ("mc1") {
gotoAndPlay (2);
}
}


or you could use..

on (release) {
with (mc1) {
gotoAndPlay (2);
}
}

then all you need to do is drag the mc with the animation that you created into the time line where you want it to show up..make sure you name the instance of the mc "mc1"..right click..panels..instance..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top