Value::GetMember

Value::GetMember
SF_INLINE bool GetMember(const char* name, Value* pval) const;
Description

GetMember retrieves a member of an object. Only valid for Object types (including Array and DisplayObject). For

Parameters
Parameters 
Description 
const char* name 
The name of the member to retrieve. 
Value* pval 
The holder for the retrieved member. 
Return Value

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.

Examples

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.