someone posted a function the other day on here that means you can remove
clips on a negative depth. the basis of it was a swapdepths before the
remove as I recall, have a look. might even have been yesterday...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Fanetti
Sent: 09 February 2006 18:38
To: Flashcoders mailing list
Subject: Re: [FlashCoders] textfield swapDepths

WOW!

I never knew Flash would not remove _mcs with negative depth.  I just 
tried it and it and it won't work.  I guess you learn something new 
every day.

import flash.geom.Rectangle
import flash.display.BitmapData

_mc = _root.createEmptyMovieClip("rect_mc",30000);
_bdm = new BitmapData(300,200,false,0xFF0000);
_mc.attachBitmap(_bdm,0);

_mc.onPress = function(){
    trace("removing")
    this.removeMovieClip();
}

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to