| Package | com.jeffdePascale.fosfr.navigation.loaders |
| Class | public class NavLoaderPrototype |
| Inheritance | NavLoaderPrototype flash.events.EventDispatcher |
| Subclasses | ShellLoader, SubLoader |
ShellLoader and SubLoader classes. Handles preloading and loading of all files loaded into a Fosfr project. Contains an implementation of Prequel for handling of Preload functionality. For more information, see the documentation for Prequel at
| Property | Defined by | ||
|---|---|---|---|
| available : Boolean | NavLoaderPrototype | ||
| loaderContext : LoaderContext
The LoaderContext to be used for the Loader instance.
| NavLoaderPrototype | ||
| loaderState : String [read-only]
A string value from the
LoaderSate class, defining what the current state the loader is in. | NavLoaderPrototype | ||
| loadID : int [read-only]
The ID value of the SubSWF file currently being loaded, relative to the
NavArray instance in the fosfr.navigation class. | NavLoaderPrototype | ||
| loadURL : String [read-only]
The full relative URL of the file currently being loaded.
| NavLoaderPrototype | ||
| pauseAfterPreload : Boolean
Boolean value, specifies whether to complete the loading process after the preload has completed or to hold at the end of the preload state until
advanceLoader() is called. | NavLoaderPrototype | ||
| pauseBeforePreload : Boolean
Boolean value, specifies whether to start the preloading process after a load is initialized or to hold at the intialized state until
advanceLoader() is called. | NavLoaderPrototype | ||
| preloadSkipped : Boolean [read-only]
Boolean value, specifies whether the preload actions were skipped on this load occurrence.
| NavLoaderPrototype | ||
| prequel : Prequel [read-only]
The instance of the Prequel class utlized in the load process.
| NavLoaderPrototype | ||
| Method | Defined by | ||
|---|---|---|---|
|
NavLoaderPrototype(_fosfr:Fosfr)
Creates an instance of the NavLoaderPrototype class
| NavLoaderPrototype | ||
|
advanceLoader():void
| NavLoaderPrototype | ||
| Method | Defined by | ||
|---|---|---|---|
|
resetProperties():void
| NavLoaderPrototype | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the loading process has completed. | NavLoaderPrototype | |||
| Dispatched when the loading process has started. | NavLoaderPrototype | |||
| Dispatched when the preload process has completed. | NavLoaderPrototype | |||
| Dispatched when the preload process has started. | NavLoaderPrototype | |||
| available | property |
public var available:Boolean
| loaderContext | property |
public var loaderContext:LoaderContextThe LoaderContext to be used for the Loader instance.
| loaderState | property |
loaderState:String [read-only]
A string value from the LoaderSate class, defining what the current state the loader is in.
The default value is com.jeffdePascale.fosfr.navigation.loaders.LoaderState.IDLE.
public function get loaderState():String
See also
| loadID | property |
loadID:int [read-only]
The ID value of the SubSWF file currently being loaded, relative to the NavArray instance in the fosfr.navigation class.
public function get loadID():int
| loadURL | property |
loadURL:String [read-only]The full relative URL of the file currently being loaded.
Implementation public function get loadURL():String
| pauseAfterPreload | property |
public var pauseAfterPreload:Boolean
Boolean value, specifies whether to complete the loading process after the preload has completed or to hold at the end of the preload state until advanceLoader() is called.
The default value is false.
| pauseBeforePreload | property |
public var pauseBeforePreload:Boolean
Boolean value, specifies whether to start the preloading process after a load is initialized or to hold at the intialized state until advanceLoader() is called.
The default value is false.
| preloadSkipped | property |
preloadSkipped:Boolean [read-only]Boolean value, specifies whether the preload actions were skipped on this load occurrence.
The default value is false.
public function get preloadSkipped():Boolean
| prequel | property |
prequel:Prequel [read-only]The instance of the Prequel class utlized in the load process.
Implementation public function get prequel():Prequel
| NavLoaderPrototype | () | constructor |
public function NavLoaderPrototype(_fosfr:Fosfr)Creates an instance of the NavLoaderPrototype class
Parameters_fosfr:Fosfr — an instance of the Fosfr class.
|
See also
| advanceLoader | () | method |
public function advanceLoader():void
| resetProperties | () | method |
protected function resetProperties():void
| complete | event |
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent.COMPLETE
Dispatched when the loading process has completed.
The NavLoaderEvent.COMPLETE constant defines the value of the type property of the event object for a complete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type | "complete" |
bubbles | A Boolean value. |
cancelable | A Boolean value. |
id | an int value specifying the ID of the SWF file in relation to the Navigation class's NavArray instance. If the file being loaded is a FosfrShellSWF file, the value is -1. |
| init | event |
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent.INIT
Dispatched when the loading process has started.
The NavLoaderEvent.INIT constant defines the value of the type property of the event object for a init event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type | "complete" |
bubbles | A Boolean value. |
cancelable | A Boolean value. |
id | an int value specifying the ID of the SWF file in relation to the Navigation class's NavArray instance. If the file being loaded is a FosfrShellSWF file, the value is -1. |
| preloadComplete | event |
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent.PRELOAD_COMPLETE
Dispatched when the preload process has completed.
The NavLoaderEvent.PRELOAD_COMPLETE constant defines the value of the type property of the event object for a preloadComplete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type | "complete" |
bubbles | A Boolean value. |
cancelable | A Boolean value. |
id | an int value specifying the ID of the SWF file in relation to the Navigation class's NavArray instance. If the file being loaded is a FosfrShellSWF file, the value is -1. |
| preloadInit | event |
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent
com.jeffdePascale.fosfr.navigation.loaders.NavLoaderEvent.PRELOAD_INIT
Dispatched when the preload process has started.
The NavLoaderEvent.PRELOAD_INIT constant defines the value of the type property of the event object for a preloadInit event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type | "complete" |
bubbles | A Boolean value. |
cancelable | A Boolean value. |
id | an int value specifying the ID of the SWF file in relation to the Navigation class's NavArray instance. If the file being loaded is a FosfrShellSWF file, the value is -1. |