25 #include <boost/bind.hpp> 40 namespace ActionScript {
86 if (
_variables[
"_global"].asObject()->hasMember(name))
99 }
else if (
_variables[
"_global"].asObject()->hasMember(name)) {
100 return _variables[
"_global"].asObject()->getMember(name);
103 return _variables[
"_global"].asObject()->getMember(name);
113 if (!variable.
asObject()->hasMember(
"prototype"))
136 for (
size_t i = 0; i < arguments.size(); ++i) {
141 (*constructor)(*this);
170 if (!
object.isObject())
RegisterClassFunction _registerClass
void setReturnValue(Variable returnValue=Variable())
A class holding an UTF-8 string.
String implementation for actionscript.
void storeRegister(Variable value, byte index)
boost::function< void(const Common::UString &, ObjectPtr)> RegisterClassFunction
Function for registering classes for widgets.
Variable getVariable(const Common::UString &name)
Variable registerClass(AVM &avm)
void fsCommand(const Common::UString &name, const Common::UString &value)
fscommand is used for communicating with the host program.
Variable createNewObject(const Common::UString &name, std::vector< Variable > arguments=std::vector< Variable >())
bool getPreloadThisFlag()
Context for executing ActionScript.
Exception that provides a stack of explanations.
Implementation for an actionscript Array class.
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
const Common::UString & asString() const
TextField implementation for actionscript.
Utility templates and functions.
std::map< Common::UString, Variable > _variables
Function objects for ActionScript.
void info(const char *s,...)
void setFSCommandCallback(FSCommandFunction)
Set a callback for the fscommand() function.
boost::function< Variable(const Common::UString &, const Common::UString &)> FSCommandFunction
Function for receiving fscommand().
bool getPreloadRootFlag()
Abstract object which is inherited by every other class.
FSCommandFunction _fscommand
An action script variable.
std::vector< Variable > _registers
bool hasVariable(const Common::UString &name)
Check if a specific variable exists.
Variable getReturnValue()
boost::shared_ptr< Object > ObjectPtr
Variable getRegister(byte index)
void setVariable(const Common::UString &name, Variable value)
Set a specific variable.
MovieClip implementation for actionscript.
void setRegisterClassFunction(RegisterClassFunction)
Set a callback for the Object.registerClass() function.
bool getPreloadSuperFlag()
The Action script virtual machine (AVM).