Gnash  0.8.11dev
Static Public Member Functions | List of all members
gnash::AsBroadcaster Class Reference

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_objectgetAsBroadcaster ()
 
static void registerNative (as_object &global)
 
static void init (as_object &global, const ObjectURI &uri)
 

Detailed Description

AsBroadcaster facilities.

Member Function Documentation

§ getAsBroadcaster()

static as_object* gnash::AsBroadcaster::getAsBroadcaster ( )
static

Return the global AsBroadcaster (the native one, immune to any override)

§ init()

void gnash::AsBroadcaster::init ( as_object global,
const ObjectURI uri 
)
static

§ initialize()

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

References gnash::callMethod(), 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(), init(), gnash::key_class_init(), gnash::mouse_class_init(), gnash::moviecliploader_class_init(), gnash::registerTextFieldNative(), gnash::selection_class_init(), and gnash::stage_class_init().

§ registerNative()

void gnash::AsBroadcaster::registerNative ( as_object global)
static

The documentation for this class was generated from the following files: