Right, this is not what I'm trying to achieve. The issue
is only for textfields, not movieclips.

I finally managed to find a workaround that works.
I used the TextField.prototype.swapDepths = MovieClip.prototype.swapDepths;
approach and it worked great!

Thanks everyone for the suggestions and discussion.

Regards,
Dimitrios

----- Original Message ----- From: "Tareq AlJaber" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, February 09, 2006 8:56 PM
Subject: RE: [FlashCoders] textfield swapDepths


So this code is not what you are trying to do,correct? 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();
}

Can you send me a sample file that reproducing the bug?

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to