Adds a node to the list of available nodes for external event calls via the LocalConnection object.
public function addExternalNode ( externalEvent: Object ):void
Adds a listener to the listener stack to be called whenever an event, denoted by the string message, is broadcast.
public function addListener( listener: Function, event: String, ... args ):Object
Creates a JavaScript `alert` box if JavaScript is available in the current runtime environment.
public function alert ( alertMessage: *, ... args ):void
Constructor method for this class instance and for the entire API class chain.
public function BNMAPI ()
Broadcasts an event to all listeners.
public function broadcast ( eventObj: Object, ... args ):Array
Broadcasts the “LoadItem.COMPLETE” event when a load is ready to report that it has fully completed.
public function broadcastCompletionEvent( ... args ):void
Broadcasts an external event to all listening clients using the LocalConnection object.
public function broadcastExternalEvent ( externalEvent: Object ):void
Broadcasts an external event to all listening clients using the ExternalInterface object.
public function broadcastJavaScriptEvent ( externalEvent: Object ):void
Calculates the total milliseconds from the appropriate class member variables.
private function calculateTotalMilliseconds():void
Checks the runtime environment for JavaScript availability as well as running some simple tests to determine what JavaScript functionality is available.
public function checkJavaScriptEnvironment ():void
Commits the error broadcast by broadcasting to all listeners and/or displays the Flash error dialog.
public function commit( ... args ):void
Commits the exception by throwing an Error object.
public function commit()
Converts data to the content object type based on the internal _type type.
private function convertData ():void
Returns the top-level or core class of the specified parameter object.
public function coreClass( ... value ):Object
Constructor method for the class.
public function CoreData()
The constructor method for the class.
public function CoreObject()
A static secondary constructor that can be used to non-destructively instantiate the API.
public static function create ()
private function createBoolean( sourceXML: XML, targetObject: * )
private function createByte( sourceXML: XML, targetObject: * )
private function createDataFromNode( nodeRef: *, parentObject: * ):void
private function createInteger( sourceXML: XML, targetObject: * )
loadObject (Object, required): An object containing the parameters to be associated with the load item.
public function createLoad ( loadObject: Object ):LoadItem
private function createMethod( sourceXML: XML, targetObject: * )
Creates a new FIFOBuffer for use with loads that need to retain sequencing.
public function createNewFIFOBuffer():FIFOBuffer
private function createNumber( sourceXML: XML, targetObject: * )
private function createObject( sourceXML: XML, targetObject: * ):Object
private function createString( sourceXML: XML, targetObject: * )
Creates a Thread instance and assigns all of the associated parameters.
public function createThread( threadObj: Object, ... parameters ):Thread
private function createUnsigned( sourceXML: XML, targetObject: * )
private function createXML( sourceXML: XML, targetObject: * )
Creates a new DateObject instance.
public function DateObject( ... args )
Sends a debug message to all registered listeners.
public function debug( message: *, ... args ):void
De-registers an external node as a listener.
private function deRegisterExternalNode ( nodeNum: int ):void
Destroys (removes) a running thread from the execution stack.
public function destroyThread( threadObj: Thread )
Disables the thread from further execution.
public function disable():void
Used to disable debugging messages via the debug method.
public function disableDebug( eventObj: Object ):void
Used to enable debugging messages via the debug method.
public function enableDebug( eventObj: Object ):void
Creates a new ErrorBroadcast instance.
public function ErrorBroadcast ( sourceObject: *, sourceMethod: Function, ... args )
Constructor method for the class.
public function Events ()
Creates a new Exception instance.
public function Exception ( sourceObject: *, sourceMethod: Function, ... args )
Executes the thread instance, calling the targetted method with the specified parameters, and at the interval supplied.
public function execute():void
Executes threads based on the provided execution model.
private function executeThreads( eventObj: TimerEvent ):void
Method used for validity/security checking of URLs for LocalConnection connection attempts.
private function externalSecurityCheck( URL: String ):Boolean
Finds a thread from the execution stack based on the supplied Thread object instance.
private function findThread( threadObj: Thread )
Converts a string from a dollar string (such as one that would be created by the toDollarString method) and creates a number out of it.
public function fromDollarString ( inp: String ):*
Converts the hexadecinal input string to its plain text value.
public function fromHexString( input: String ):String
Converts the input number from its hexadecimal string representation to a number value.
public function fromHexValue( input: String ):Number