Variant type to pass values to flash variables
IFlashPlayer.h
union Data { bool b; int i; unsigned int ui; double d; float f; const char* pStr; const wchar_t* pWstr; };
IFlashPlayer.h
Enumerates types that can be sent to and received from flash
enum Type { eUndefined, eNull, eBool, eInt, eUInt, eDouble, eFloat, eConstStrPtr, eConstWstrPtr, eObject };
IFlashPlayer.h
Members |
Description |
eObject |
receive only! |
Data data;
Type type;
static SFlashVarValue CreateNull();
static SFlashVarValue CreateUndefined();
bool GetBool() const;
const char* GetConstStrPtr() const;
const wchar_t* GetConstWstrPtr() const;
double GetDouble() const;
float GetFloat() const;
int GetInt() const;
Type GetType() const;
int GetUInt() const;
bool IsBool() const;
bool IsConstStr() const;
bool IsConstWstr() const;
bool IsDouble() const;
bool IsFloat() const;
bool IsInt() const;
bool IsNull() const;
bool IsObject() const;
bool IsUInt() const;
bool IsUndefined() const;
SFlashVarValue(bool val); SFlashVarValue(int val); SFlashVarValue(unsigned int val); SFlashVarValue(double val); SFlashVarValue(float val); SFlashVarValue(const char* val); SFlashVarValue(const wchar_t* val); SFlashVarValue(); SFlashVarValue(Type t);
Notes: Don't define default constructor to enforce efficient default initialization of argument lists!