Go to the documentation of this file.
21 #ifndef GNASH_ASOBJ_EXTERNALINTERFACE_H
22 #define GNASH_ASOBJ_EXTERNALINTERFACE_H
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
ObjectURI arrayKey(VM &vm, size_t i)
Convert an integral value into an ObjectURI.
Definition: Array_as.cpp:995
std::string name
Definition: LocalConnection_as.cpp:149
bool toBool(const as_value &v, const VM &vm)
Convert an as_value to boolean type.
Definition: VM.cpp:445
@ PROP_TO_STRING
Definition: namedStrings.h:191
The base class for all ActionScript objects.
Definition: as_object.h:162
as_value getOwnProperty(as_object &o, const ObjectURI &uri)
Get an own member of an object.
Definition: as_object.h:777
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
void registerExternalInterfaceNative(as_object &global)
Definition: ExternalInterface_as.cpp:150
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ i
Definition: GnashKey.h:155
#define LOG_ONCE(x)
Definition: log.h:49
@ PROP_LENGTH
Definition: namedStrings.h:83
#define _(String)
Definition: log.h:44
The AVM1 virtual machine.
Definition: VM.h:72
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
size_t arrayLength(as_object &array)
Get the length of an object as though it were an array.
Definition: Array_as.cpp:942
@ m
Definition: GnashKey.h:159
@ SCRIPT_ACCESS_NEVER
Definition: movie_root.h:481
@ n
Definition: GnashKey.h:160
#define __FUNCTION__
Definition: log.h:437
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
void escapeXML(std::string &text)
Escape using XML entities.
Definition: XML_as.cpp:104
bool init_destructive_property(const ObjectURI &uri, as_function &getter, int flags=PropFlags::dontEnum)
Initialize a destructive getter property.
Definition: as_object.cpp:720
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
@ SCRIPT_ACCESS_SAME_DOMAIN
Definition: movie_root.h:482
as_value callMethod(fn_call::Args &args, as_object *obj, const ObjectURI &uri)
Call a member function of this object in an AS-compatible way.
Definition: Global_as.h:219
@ r
Definition: GnashKey.h:164
as_value emptyFunction(const fn_call &)
Definition: Global_as.h:256
virtual bool get_member(const ObjectURI &uri, as_value *val)
Get a property by name if it exists.
Definition: as_object.cpp:378
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
@ onlySWF8Up
Only visible by VM initialized for version 8 or higher.
Definition: PropFlags.h:54
void externalinterface_class_init(as_object &where, const ObjectURI &uri)
Initialize the global ExternalInterface class.
Definition: ExternalInterface_as.cpp:167
@ PROP_AS_SET_PROP_FLAGS
Definition: namedStrings.h:137
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
@ SCRIPT_ACCESS_ALWAYS
Definition: movie_root.h:483
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
int getSWFVersion(const as_environment &env)
Definition: as_environment.cpp:657
uri
Definition: test.py:12
string_table & getStringTable(const as_environment &env)
Definition: as_environment.cpp:639
void log_security(StringType msg, Args... args)
Definition: log.h:319
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
static as_value parseXML(const std::string &xml)
Definition: ExternalInterface.cpp:226
bool hasOwnProperty(as_object &o, const ObjectURI &uri)
Return true if this object has the named property.
Definition: as_object.h:854
@ o
Definition: GnashKey.h:161
void foreachArray(as_object &array, T &pred)
Definition: Array_as.h:78
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
@ u
Definition: GnashKey.h:167
A URI for describing as_objects.
Definition: ObjectURI.h:45
void unescapeXML(std::string &text)
Definition: XML_as.cpp:115
std::int32_t x
Definition: BitmapData_as.cpp:434
as_object * findObject(const as_environment &ctx, const std::string &path, const as_environment::ScopeStack *scope)
Find the object referenced by the given path.
Definition: as_environment.cpp:116
@ e
Definition: GnashKey.h:151
bool equals(const as_value &a, const as_value &b, const VM &vm)
Check if two values are equal.
Definition: VM.cpp:439
#define MAXHOSTNAMELEN
Definition: ExternalInterface_as.cpp:52
void newAdd(as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionNewAdd.
Definition: VM.cpp:356