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

Unloading MC, in its mc 2

Status
Not open for further replies.

Thoe99

Programmer
May 11, 2001
119
US
I have movieclip_B inside movieclip_A. How would I unload movieclip_B from movieclip_A, once movieclip_B hits frame 15?
 
You can't remove a movieClip unless it has been programmatically placed using either duplicateMovieClip() or attachMovieClip().

What you CAN do is just stop the clip and hide it. Place this code on movieClip B:

onClipEvent (enterFrame) {
if (this._currentframe == 15) {
stop();
this._visible = false;
}
}

That should do the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top