In AS3, the in operator will iterate only through dynamically added properties. Properties/methods that are declared as part of the class are not included, so it will show nothing for the Label.
On 4/4/06, David Moylan [EMAIL PROTECTED] wrote:
I want to clone an mx:Label object.I thought I should be able to usefor (var i: String in label){trace(i);}to test cycling through the properties of my label, but no luck.There's no compile error, but it also doesn't loop.I've tried this
directly on the label object and inside a function where the label wouldbe cast as an Object.Shouldn't I be able to treat any object as anassociative array?Dave--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.