IInitProxy

com.afw.puremvc.InitMonitor.model

Application proxy classes for use with InitMonitorProxy, all proxies passed to InitMonitorProxy must implement this interface and extend InitSimpleProxy.

Summary
IInitProxycom.afw.puremvc.InitMonitor.model
Functions
loadThis function gets called by InitMonitorProxy.
stopThis function should stop loading in its tracks.
Properties
completeThe complete property helps InitMonitorProxy to calculate loading progress.
completeNotificationNameThe proxy must call the finish() function, defined in InitSimpleProxy when load() is complete.

Functions

load

function load():void

This function gets called by InitMonitorProxy.  At some point after load() is called, a Notification based on completeNotificationName is sent (see InitSimpleProxy)

stop

function stop():void

This function should stop loading in its tracks.  Although the proxy may continue to process, the completeNotificationName Notification should not be sent after stop() is called.  Ussually, stop will simply remove an event listener to prevent finish() from being called.

Properties

complete

function get complete():Boolean

The complete property helps InitMonitorProxy to calculate loading progress.  Keep in mind that some proxies may already be complete even before InitMonitorProxy.start() is called

completeNotificationName

function get completeNotificationName():String

The proxy must call the finish() function, defined in InitSimpleProxy when load() is complete.  The finish() function sends the complete notification.

This notification name may often be hardcoded into the proxy.  It is used internally to notify InitMonitorProxy of completion progress.  However, to use this notification elsewhere, define it inside ApplicationFacade.

Keep in mind that this notification should be issued (when the proxy calls finish()) every single time, regardless of whether or not the proxy was already complete before load() was called.  (ie., If complete was already true, then finish() is called immediately after load)

com.afw.puremvc.InitMonitor.model
com.afw.puremvc.InitMonitor.model
com.afw.puremvc.InitMonitor.model
function load():void
This function gets called by InitMonitorProxy.
function stop():void
This function should stop loading in its tracks.
function get complete():Boolean
The complete property helps InitMonitorProxy to calculate loading progress.
function get completeNotificationName():String
The proxy must call the finish() function, defined in InitSimpleProxy when load() is complete.