Packagecom.jeffdePascale.fosfr.navigation.loaders
Classpublic class SubLoader
InheritanceSubLoader Inheritance NavLoaderPrototype Inheritance flash.events.EventDispatcher

Handles loading of the FosfrSubSWF files.

See also

com.jeffdePascale.fosfr.navigation.Navigation


Public Properties
 PropertyDefined by
 Inheritedavailable : Boolean
NavLoaderPrototype
  isLoading : Boolean
[read-only] Boolean, specifies whether a SubSWF file is currently loading.
SubLoader
 InheritedloaderContext : LoaderContext
The LoaderContext to be used for the Loader instance.
NavLoaderPrototype
 InheritedloaderState : String
A string value from the LoaderSate class, defining what the current state the loader is in.
NavLoaderPrototype
 InheritedloadID : int
The ID value of the SubSWF file currently being loaded, relative to the NavArray instance in the fosfr.navigation class.
NavLoaderPrototype
 InheritedloadURL : String
The full relative URL of the file currently being loaded.
NavLoaderPrototype
 InheritedpauseAfterPreload : 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
 InheritedpauseBeforePreload : 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
 InheritedpreloadSkipped : Boolean
Boolean value, specifies whether the preload actions were skipped on this load occurrence.
NavLoaderPrototype
 Inheritedprequel : Prequel
The instance of the Prequel class utlized in the load process.
NavLoaderPrototype
Public Methods
 MethodDefined by
  
SubLoader(_fosfr:Fosfr)
Creates an instance of the SubLoader class.
SubLoader
 Inherited
NavLoaderPrototype
  
load(target:*, __deepLink:Array = null, __loadVariables:Object = null, _skipPreload:Boolean = false, preloadArray:Array = null, swfAddressChange:Boolean = true, forcedFullPageName:String = null):void
Begins the loading process for the file specified in the str parameter.
SubLoader
  
unloadSubSWF():void
Unloads the currently loaded SubSWF without loading a replacement.
SubLoader
Protected Methods
 MethodDefined by
  
finalizeLoad():void
SubLoader
 Inherited
NavLoaderPrototype
Events
 EventSummaryDefined by
 Inherited Dispatched when the loading process has completed.NavLoaderPrototype
 Inherited Dispatched when the loading process has started.NavLoaderPrototype
 Inherited Dispatched when the preload process has completed.NavLoaderPrototype
 Inherited Dispatched when the preload process has started.NavLoaderPrototype
Property detail
isLoadingproperty
isLoading:Boolean  [read-only]

Boolean, specifies whether a SubSWF file is currently loading.

Implementation
    public function get isLoading():Boolean
Constructor detail
SubLoader()constructor
public function SubLoader(_fosfr:Fosfr)

Creates an instance of the SubLoader class.

Parameters
_fosfr:Fosfr — An instance of the Fosfr class.

See also

Method detail
finalizeLoad()method
protected override function finalizeLoad():void

load()method 
public function load(target:*, __deepLink:Array = null, __loadVariables:Object = null, _skipPreload:Boolean = false, preloadArray:Array = null, swfAddressChange:Boolean = true, forcedFullPageName:String = null):void

Begins the loading process for the file specified in the str parameter. The extension ".swf" is automatically applied to the string value, and the rootFolder property of the Fosfr class is respected.

Parameters
target:* — a string value minus the ".swf" file extension of a FosfrSubSWF based file to be loaded. Alternatively, the numerical identifier from the Navigation.navArray instance may be used.
 
__deepLink:Array (default = null) — optional; An object passed on instatiation of the FosfrSubSWF file. Useful for passing parameters to the loaded SubSWF. Defaults to null.
 
__loadVariables:Object (default = null) — optional; specifies whether preloading should be skipped during the load process. Defaults to false.
 
_skipPreload:Boolean (default = false) — optional; specifies whether swfAddress events should be dispatched for loading of the SubSWF file. Defaults to true.
 
preloadArray:Array (default = null) — forcedFullPageName A string value to add to the NavArray element for this file, overriding the value specified in the configuration file, specifying what is displayed in the Title for the site for this SubSWF if enableSWFAddress is set to true in the Navigation class.
 
swfAddressChange:Boolean (default = true)
 
forcedFullPageName:String (default = null)

See also

unloadSubSWF()method 
public function unloadSubSWF():void

Unloads the currently loaded SubSWF without loading a replacement.