AsBroadcaster facilities. More...
#include <AsBroadcaster.h>
Static Public Member Functions | |
static void | initialize (as_object &obj) |
Initialize the given object as an AsBroadcaster. | |
static as_value | initialize_method (const fn_call &fn) |
AsBroadcaster.initialize() AS method. | |
static as_object * | getAsBroadcaster () |
static void | registerNative (as_object &global) |
static void | init (as_object &global, const ObjectURI &uri) |
AsBroadcaster facilities.
static as_object* gnash::AsBroadcaster::getAsBroadcaster | ( | ) | [static] |
Return the global AsBroadcaster (the native one, immune to any override)
void gnash::AsBroadcaster::initialize | ( | as_object & | obj | ) | [static] |
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
AsBroadcaster.initialize() AS method.
void gnash::AsBroadcaster::registerNative | ( | as_object & | global | ) | [static] |