GetMember retrieves a member of an object. Only valid for Object types (including Array and DisplayObject). For
Parameters |
Description |
const char* name |
The name of the member to retrieve. |
Value* pval |
The holder for the retrieved member. |
True if the member was retrieved, otherwise false. A false value will also be returned if the Value is a reference to a display object, and the display object was unloaded.
If the member is a child movieclip, then it is returned as a DisplayObject type. If the member is a string, then it is returned as a String type. If the member is a property, then it is evaluated and the value returned. If a managed value such as an Object is returned, then the Value holding the reference MUST be destroyed before the runtime dies since the Object’s memory will be invalid due to heap deallocation.