I don't have the option to create the textfield dynamically.
So I have to put it there from the Flash IDE and it automatically
gets a negative depth, like all instances that are created this way.

Dimitrios

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


Why in the first place you want to use negative depth?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Dimitrios Bendilas
Sent: Thursday, February 09, 2006 10:04 AM
To: Flashcoders mailing list
Subject: Re: [FlashCoders] textfield swapDepths

Hey,

Thanks everyone for your suggestions.

Tom, in order to remove the textfield, as you say, you will have
to swapDepths() first, which unfortunately doesn't work on TextFields.
That's why I started this thread in the first place.

I just found this suggestion in a forum:
TextField.prototype.swapDepths = MovieClip.prototype.swapDepths;

A little hack that lets you swap textfields. Didn't try it yet but I
guess it works.

Do you all think it's something I wouldn't mind putting in? Or is it too

dirty?
I think it's ok.

Dimitrios

----- Original Message ----- From: "Tom Rhodes" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, February 09, 2006 7:51 PM
Subject: RE: [FlashCoders] textfield swapDepths


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




_______________________________________________
Flashcoders@chattyfig.figleaf.com
Unsubscribe, set options at
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
_______________________________________________
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



_______________________________________________
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