Gnash
0.8.11dev
|
AsBroadcaster facilities. More...
#include <AsBroadcaster.h>
Static Public Member Functions | |
static void | initialize (as_object &obj) |
Initialize the given object as an AsBroadcaster. More... | |
static as_object * | getAsBroadcaster () |
static void | registerNative (as_object &global) |
static void | init (as_object &global, const ObjectURI &uri) |
AsBroadcaster facilities.
|
static |
Return the global AsBroadcaster (the native one, immune to any override)
Initialize the given object as an AsBroadcaster.
AsBroadcaster class.
This method set the addListener,removeListener and broadcastMessage AS methods with the object, and set the _listners array member.
It is exposed so that Stage,TextField,Key,Mouse and Selection can call this internally.
The AsBroadcaster_init will take care of registering the _global.AsBroadcaster object and its 'initialize' method for user-defined broadcasters initialization
References gnash::NSV::CLASS_AS_BROADCASTER, gnash::Global_as::createArray(), gnash::as_object::DefaultFlags, gnash::getGlobal(), gnash::getMember(), gnash::getVM(), gnash::NSV::PROP_ADD_LISTENER, gnash::NSV::PROP_AS_NATIVE, gnash::NSV::PROP_BROADCAST_MESSAGE, gnash::NSV::PROP_REMOVE_LISTENER, gnash::NSV::PROP_uLISTENERS, gnash::as_object::set_member(), gnash::as_object::set_member_flags(), and gnash::toObject().
Referenced by gnash::filereference_class_init(), gnash::key_class_init(), gnash::moviecliploader_class_init(), gnash::selection_class_init(), and gnash::stage_class_init().
References gnash::getVM(), and gnash::VM::registerNative().