BNMAPI

This is the bottom-most class in the BNMAPI chain.  In other words, this is the end point for the API’s inheritance.  All classes are extended by this one and the whole structure is reverse-traversed backwards by calling super constructors until the entire chain is created.  This end-point class is provided as the way to create the authoritative and complete BNMAPI singleton instance and it should be the first thing that a prospective application does.  The events in this class have been prepared and organized in very specific sequences to ensure that every piece of the API has access to all of its necessary data and references.

For a complete list of all functionality and data available through the BNMAPI instance, refer to the API documentation or to each class individually.  Remember that since this is a singleton, all methods and members are available directly through this single reference.

__/ REQUIREMENTS \__

ActionScript 3.0 (or later)

__/ IMPORTS \__

flash.display.MovieClip flash.utils.*

__/ EXTENDS \__

com.bnm.api.LoadManager

__/ IMPLEMENTS \__

nothing

__/ NOTICE \__

©opyright 2008 Bay New Media.  All rights, as stipulated in the The MIT License, are reserved.

This ActionScript library is licensed and released under the MIT License (http://www.opensource.org/licenses/mit-license.php).  Please refer to the accompanying text file “license.txt”, which should be distributed with every package and version of this library, for information on usage, distribution, copying, and other important information.

Please visit http://www.baynewmedia.com/ or email con.nosp@m.tact@baynewm.nosp@m.edia.com for information, questions, concerns, or bug reports.

__/ NOTES \__

This class is commented using the NaturalDocs documentation system.  It is intended to be easily read both from the direct source code and from an adaptation that is generated as hyperlinked HTML.  The NaturalDocs specification used in this class’ documentation is version 1.35 though older versions may probably be used safely.  For more information, please visit: http://www.naturaldocs.org/

The BNMAPI is officially available (primary sources) on Source Forge (http://sourceforge.net/projects/bnmapi/), on the Bay New Media site (http;//www.baynewmedia.com/), on the PeaBee project site (http://www.peabee.com/), and through the Bay New Media SVM repository server (visit http://www.baynewmedia.com/ for more information).  Downloads from other sources may not be complete or up-to-date.

If you’re interested in joining the BNMAPI project in any capacity (development, testing, distribution, etc.), please visit us on Source Forge or the Bay New Media web site.

Summary
BNMAPIThis is the bottom-most class in the BNMAPI chain.
Variables
Application(untyped) A generic reference variable that a main application class can use to register itself with.
Functions
BNMAPIConstructor method for this class instance and for the entire API class chain.
createA static secondary constructor that can be used to non-destructively instantiate the API.
setListenersSets default listeners for the API.

Variables

Application

public var Application: *

(untyped) A generic reference variable that a main application class can use to register itself with.  This is typically a reference to the main document class and can be used to provide a centralized reference for various application modules.  However, this reference is provided simply as a pseudo-global reference and may in fact point to anything.

Functions

BNMAPI

public function BNMAPI ()

Constructor method for this class instance and for the entire API class chain.

Parameters

none

Returns

BNMAPI: An instance of the BNMAPI class.

Broadcasts

nothing

Throws

nothing

Bubbles

no

create

public static function create ()

A static secondary constructor that can be used to non-destructively instantiate the API.  If an instance already exists, this method will do nothing, otherwise it will create the single instance.  Simply importing the <com.bnm.api.BNMAPI> class and calling `BNMAPI.create();` will ensure that the

setListeners

private function setListeners()

Sets default listeners for the API.  These are only for the end class (BNMAPI) and does not apply to any other class in the chain.

Parameters

none

Returns

nothing

Broadcasts

nothing

Throws

nothing

Bubbles

no

Manages binary/data loads for the API.
public var Application: *
(untyped) A generic reference variable that a main application class can use to register itself with.
public function BNMAPI ()
Constructor method for this class instance and for the entire API class chain.
public static function create ()
A static secondary constructor that can be used to non-destructively instantiate the API.
private function setListeners()
Sets default listeners for the API.