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()) //traced: -16383
trace("1 mc:" + mc.getDepth()) //traces: 1
var oldTFdepth = text_txt.getDepth();
mc.swapDepths( oldTFdepth );
trace("2 t:" + text_txt.getDepth()); //traces: 1
trace("2 mc:" + mc.getDepth()); //traced: -16383
----- Original Message -----
From: "Dimitrios Bendilas" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, February 09, 2006 10:51 AM
Subject: [Bulk] [FlashCoders] textfield swapDepths
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 doesn't change and it remains negative.
Is this how it should work?
Thanks,
Dimitrios
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
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