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

instance of movie clip

Status
Not open for further replies.

sarak

Programmer
May 3, 2001
25
US
When a user presses a button I would like MovieClipA to appear. This will be the first and only instance of MovieClipA to appear in my movie. I'm wondering about the best way to go about this. Two approaches I can think of are:

1. Using the DuplicateMovieClip action (even though this will be the first and only instance of the clip)

2. Originally setting the visibility property of MovieClipA to 0 and when the button is clicked, the visibility will be 100%.

Any opinions about the best approach would be appreciated. Thanks!!
 
make the first frame of your movie clip blank with a stop action..thus hiding it..second frame is your pic or whatever you have there..make sure you name the mc in the instance panel..not just in the library..button that calls the mc

on (press) {
_root.yourmc.gotoAndPlay(2);
}
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
hi Sarak, hi Carl

You'll want that to be a goto and Stop statement otherwise the image/whatever will just blink on and off once, unless you also put a Stop action in the second frame of your mc.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
indeed..i meant to tell sarak to put a stop action in both frames..or as dave said just make the action gotoAndStop..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
hey Carl,

is your old email address still viable or am I gonna have to spend the next three weeks typing in that new one? ;-)
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
virtuality2001@aol.com
logo.gif


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

Part and Inventory Search

Sponsor

Back
Top