it's placed procedurally using createClassObject()


On 24 May 2007, at 17:10, Muzak wrote:

If the TextArea (or whatever object) is placed on stage manually, it will reside on a negative depth. Objects with a negative depth can not be removed through ActionScript, unless they're swapped to a positive depth.

Use the DepthManager to switch a component's depth to a positive one before removal.

import mx.controls.TextArea;
import mx.managers.DepthManager;

var _ta:TextArea;
_ta.text = "Hello World";
_ta.setDepthTo(DepthManager.kTop);
_ta.removeMovieClip();

regards,
Muzak

----- Original Message -----
From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]>
To: "flashcoders" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, May 24, 2007 5:21 PM
Subject: [Flashcoders] removeMovieClip scoped incorrectly?


hi folks

i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think
it  may be a scope issue but i can't see why

the function is



_______________________________________________
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