A quick and useful titbit: in order to get the class of an object use the following code:
1: static function getClass(obj:Object):Class {
2: return Class(getDefinitionByName(getQualifiedClassName(obj)));
3: }
This is great for checking the type of an object. For example, if you have an object myObj1 [...]