If you switched to AS3, teh for in loop does not work on 'sealed' classes,
only on the legacy AS2 style prototype based objects - like
myObj:Object = { prop: 1 , prop: 2, prop: 3 ...};
For sealed classes like iterating thru the, say, props of a
ByteArray or NetStream class,
use the
ObjectUtil.toString
// new Reflection API
myClass.getClass
....
Hope that helped a bit
amir
Am 02:30 PM 7/13/2007 schrieben Sie:
This is weird:
trace(tProps.nformat.nalignment)
for (var i in tProps.nformat) {
trace (i + ": " + tProps.nformat[i])
}
Result:
left
That is: tProps.nformat.nalignment is equal to "left", but the for..in loop
is failing to mention it (or any of the other properties in the object).
I'm really baffled - especially because the same code was working fine until
today - I've rewritten the class, but this bit shouldn't be affected at all.
Any suggestions gratefully received
Danny
_______________________________________________
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