I have a DepthManager that will take care of this. It adds the .swapDepths()
method to TextField and Button. More specifically, it replaces the
MovieClip.removeMovie() and TextField.removeTextField() methods so that they
work at whatever depth.
The DepthManager is self-instantiating, but you have
Accidentally discovered a workaround:
although you could not apply swapDepth to textField directly, you could do
it with help of mc dummy:
//text_txt - text field on a timeline
var newTFdepth = 1;
mc = this.createEmptyMovieClip(dummy, newTFdepth);
trace(1 t: + text_txt.getDepth())
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
swapDepths can only be applied to movieclips. Put the textfield inside a
movieclip and then apply swapdepths to that.
-sarah
Hello everyone,
I'm using .swapDepths() on a textfield on the stage,
that was not created dynamically, but was placed there
from iside the Flash IDE.
It's depth
:44 PM
Subject: Re: [FlashCoders] textfield swapDepths
swapDepths can only be applied to movieclips. Put the textfield inside a
movieclip and then apply swapdepths to that.
-sarah
Hello everyone,
I'm using .swapDepths() on a textfield on the stage,
that was not created dynamically
Dimitirios,
Have you considered loading a blank movieclip into the textfields depth
then removing the movieclip? Loading the mc into that depths should
clear that depth then removing the mc should clear that memory
___
Flashcoders mailing list
i dont think removeMovieClip or swapDepths works if the object is on a
negative level
On 2/9/06, Scott Fanetti [EMAIL PROTECTED] wrote:
Dimitirios,
Have you considered loading a blank movieclip into the textfields depth
then removing the movieclip? Loading the mc into that depths should
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,3);
_bdm = new
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
, 2006 12: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
oops, sorry, I'd wrap it in a clip then...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios
Bendilas
Sent: 09 February 2006 19:04
To: Flashcoders mailing list
Subject: Re: [FlashCoders] textfield swapDepths
Hey,
Thanks everyone for your
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
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
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
-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Thursday, February 09, 2006 10:14 AM
To: Flashcoders mailing list
Subject: Re: [FlashCoders] textfield swapDepths
function removeMofo(mc)
{
var theD = mc.getDepth();
if ( mc.getDepth() -1
Tag team baby! Thanks Francis.
- Original Message -
From: Francis Cheng [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 09, 2006 3:55 PM
Subject: RE: [FlashCoders] textfield swapDepths
A couple corrections:
1. Use instead
Ah, gotcha
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: February 9, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [FlashCoders] textfield swapDepths
Although you can put mc's in depths higher than 1048575, you cannot
remove
17 matches
Mail list logo