Anybody knows if it's bad practice to type-cast the parent-property to the class of the parent?

Since parent is a property of the DisplayObject class, you can only reference properties and methods of that class directly through the parent-property.

If you want to access other properties or methods, you have to type- cast parent to the specific class.

If you have some other "cleaner" ways of doing this it would be greatly appreciated!

Regards,

Johan Nyberg
Designer and web developer

[EMAIL PROTECTED]
08 - 50 00 24 30
070 - 407 83 00



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to