Be a Supporter!

Removing Movieclips (AS2)

  • 258 Views
  • 5 Replies
New Topic Respond to this Topic
A-star
A-star
  • Member since: Dec. 16, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Removing Movieclips (AS2) 2009-12-12 21:29:23 Reply

I'm not entirely sure how to remove a MC individually placed on the timeline, removeMovieClip and unloadMovie seem to only remove MCs placed through coding. [AS2]


~1.1

daytonj
daytonj
  • Member since: Jan. 9, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Removing Movieclips (AS2) 2009-12-12 21:31:41 Reply

I've used unload on clips made in authoring time always worked for me check your code


My KKK name is Imperial Warrior

A-star
A-star
  • Member since: Dec. 16, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Removing Movieclips (AS2) 2009-12-12 21:34:10 Reply

I'm positive that the code is fine.


~1.1

InnerChild548
InnerChild548
  • Member since: Aug. 10, 2007
  • Offline.
Forum Stats
Member
Level 35
Melancholy
Response to Removing Movieclips (AS2) 2009-12-12 21:42:22 Reply

If you placed the MovieClip on the stage during authoring, then you can't really remove it. The best you can do is either send it off screen or change it's visible property to false, to hide it:

myMC._visible = false;


BBS Signature
Johnny
Johnny
  • Member since: Apr. 17, 2004
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Removing Movieclips (AS2) 2009-12-13 08:14:24 Reply

At 12/12/09 09:42 PM, InnerChild548 wrote: If you placed the MovieClip on the stage during authoring, then you can't really remove it. The best you can do is either send it off screen or change it's visible property to false, to hide it:

myMC._visible = false;

You can use swapDepths() on it first which will allow it to be removed.

instanceName.swapDepths(50000);
instanceName.removeMovieClip();


Perpetually looking for time to return to the arts.

BBS Signature
BillysProgrammer
BillysProgrammer
  • Member since: Sep. 17, 2008
  • Offline.
Forum Stats
Member
Level 16
Gamer
Response to Removing Movieclips (AS2) 2009-12-13 11:40:06 Reply

At 12/12/09 09:42 PM, InnerChild548 wrote: If you placed the MovieClip on the stage during authoring, then you can't really remove it. The best you can do is either send it off screen or change it's visible property to false, to hide it:

myMC._visible = false;

Doing that will use up cpu and cache, unless you are going to be using it again, never make it just invisible.