struct IFlashVariableObject { struct ObjectVisitor { }; };
IFlashPlayer.h
struct ObjectVisitor { };
IFlashPlayer.h
virtual ~ObjectVisitor();
virtual void Visit(const char* pName) = 0;
virtual ~IFlashVariableObject();
virtual bool AttachMovie(IFlashVariableObject*& pVarObjMC, const char* pSymbolName, const char* pInstanceName, int depth = -1, const IFlashVariableObject* pInitObj = 0) = 0;
bool ClearElements();
virtual IFlashVariableObject* Clone() const = 0;
virtual bool CreateEmptyMovieClip(IFlashVariableObject*& pVarObjMC, const char* pInstanceName, int depth = -1) = 0;
AS MovieClip support. These methods are only valid for MovieClips.
virtual bool DeleteMember(const char* pMemberName) = 0;
virtual bool Get3DMatrix(Matrix44& mat) const = 0;
virtual unsigned int GetArraySize() const = 0;
AS Array support. These methods are only valid for Array type.
virtual bool GetColorTransform(SFlashCxform& cx) const = 0;
virtual bool GetDisplayInfo(SFlashDisplayInfo& info) const = 0;
virtual bool GetDisplayMatrix(Matrix33& mat) const = 0;
virtual bool GetElement(unsigned int idx, IFlashVariableObject*& pVarObj) const = 0;
virtual bool GetElement(unsigned int idx, SFlashVarValue& value) const = 0;
virtual bool GetMember(const char* pMemberName, IFlashVariableObject*& pVarObj) const = 0;
virtual bool GetMember(const char* pMemberName, SFlashVarValue& value) const = 0;
virtual bool GetText(SFlashVarValue& text) const = 0;
virtual bool GetTextHTML(SFlashVarValue& html) const = 0;
virtual bool GotoAndPlay(const char* pFrame) = 0;
virtual bool GotoAndPlay(unsigned int frame) = 0;
virtual bool GotoAndStop(const char* pFrame) = 0;
virtual bool GotoAndStop(unsigned int frame) = 0;
virtual bool HasMember(const char* pMemberName) const = 0;
AS Object support. These methods are only valid for Object type (which includes Array and DisplayObject types).
virtual bool Invoke(const char* pMethodName, const SFlashVarValue* pArgs, unsigned int numArgs, SFlashVarValue* pResult = 0) = 0;
bool Invoke0(const char* pMethodName, SFlashVarValue* pResult = 0);
bool Invoke1(const char* pMethodName, const SFlashVarValue& arg, SFlashVarValue* pResult = 0);
virtual bool IsArray() const = 0;
virtual bool IsDisplayObject() const = 0;
virtual bool IsObject() const = 0;
Type check
virtual bool PopBack() = 0;
virtual bool PushBack(const IFlashVariableObject* pVarObj) = 0;
virtual bool PushBack(const SFlashVarValue& value) = 0;
virtual void Release() = 0;
bool RemoveElement(unsigned int idx);
virtual bool RemoveElements(unsigned int idx, int count = -1) = 0;
virtual bool Set3DMatrix(const Matrix44& mat) = 0;
virtual bool SetArraySize(unsigned int size) = 0;
virtual bool SetColorTransform(const SFlashCxform& cx) = 0;
virtual bool SetDisplayInfo(const SFlashDisplayInfo& info) = 0;
AS display object (MovieClips, Buttons, TextFields) support. These methods are only valid for DisplayObject type.
virtual bool SetDisplayMatrix(const Matrix33& mat) = 0;
virtual bool SetElement(unsigned int idx, const IFlashVariableObject* pVarObj) = 0;
virtual bool SetElement(unsigned int idx, const SFlashVarValue& value) = 0;
virtual bool SetMember(const char* pMemberName, const IFlashVariableObject* pVarObj) = 0;
virtual bool SetMember(const char* pMemberName, const SFlashVarValue& value) = 0;
virtual bool SetText(const char* pText) = 0;
AS TextField support
virtual bool SetText(const wchar_t* pText) = 0;
virtual bool SetTextHTML(const char* pHtml) = 0;
virtual bool SetTextHTML(const wchar_t* pHtml) = 0;
virtual bool SetVisible(bool visible) = 0;
virtual SFlashVarValue ToVarValue() const = 0;
virtual void VisitMembers(ObjectVisitor* pVisitor) const = 0;