Packagecom.jeffdePascale.fosfr.navigation
Classpublic class Navigation
InheritanceNavigation Inheritance flash.events.EventDispatcher

The Navigation class adds functionality for building full sites with master SWF files and interchangeable content SWF's. It is enabled when implementing the FosfrMainSWF class as the document class for the SWF file, and requires additional files built off of the FosfrShellSWF and FosfrSubSWF classes to implement properly. Navigation also optionally adds functionality for handling SWFAddress events with the SWFAddressHandler class and control over a standardized navigation menu of displayObject's using the GraphicalNavController class.

See also

com.jeffdePascale.fosfr.navigation.swfAddress.SWFAddressHandler
com.jeffdePascale.fosfr.navigation.graphicalNav.GraphicalNavController
com.jeffdePascale.fosfr.FosfrMainSWF
com.jeffdePascale.fosfr.FosfrShellSWF
com.jeffdePascale.fosfr.FosfrSubSWF
com.jeffdePascale.fosfr.core.Fosfr


Public Properties
 PropertyDefined by
  autoShellLoad : Boolean
Boolean value, specifies whether, upon completion of loading of the Fosfr configuration xml file, the FosfrShellSWF file should automatically load in.
Navigation
  autoSubLoad : Boolean
Boolean value, specifies whether, upon completion of loading of the FosfrShellSWF file, the first FosfrSubSWF file cued for load should automatically load in.
Navigation
  currentSection : int
[read-only] The numerical value of the subSWF currently loaded in relation to its position in the NavArray class.
Navigation
  enableGraphicalNav : Boolean
Boolean value, specifies whether to instantiate an instance of the GraphicalNavController class.
Navigation
  enableSWFAddress : Boolean
Boolean value, specifies whether to instantiate an instance of the SWFAddressHandler class.
Navigation
  graphicalNavHandler : GraphicalNavController
[read-only] An instance of the GraphicalNavController class.
Navigation
  initialSubSWF : uint
[read-only] The numerical value of the subSWF to load from the NavArray class.
Navigation
  navArray : NavArray
[read-only] An instance of the NavArray class.
Navigation
  preloadInitialSubSWFWithShell : Boolean
Boolean value, specifies whether the initial SubSWF file for the site should be preloaded with the shell file.
Navigation
  shellClipName : String
String value specifying the instance name of the displayObject in the fosfrMainSWF file that the FosfrShellSWF file should be loaded into.
Navigation
  shellLoader : ShellLoader
[read-only] An instance of the ShellLoader class.
Navigation
  shellString : String
String value, specifies the file name of the FosfrShellSWF file to load in, minus the ".swf" file extension.
Navigation
  skipShellPreload : Boolean
Boolean value, specifies whether the FosfrShellSWF file should be preloaded or just loaded directly.
Navigation
  subLoader : SubLoader
[read-only] An instance of the SubLoader class.
Navigation
  subSWFClipName : String
String value specifying the instance name of the displayObject in the fosfrShellSWF file that the FosfrSubSWF files should be loaded into.
Navigation
  swfAddressHandler : SWFAddressHandler
[read-only] An instance of the SWFAddressHandler class.
Navigation
Public Methods
 MethodDefined by
  
Navigation(_fosfr:Fosfr, sectionArray:Array)
Creates an instance of the Navigation class.
Navigation
  
initialize():void
Intializes the Navigation class and starts the loading process.
Navigation
  
initialSubLoad(deepLink:Array = null, varObj:Object = null, skipPreload:Boolean = false, preloadArray:Array = null):void
Navigation
Events
 EventSummaryDefined by
   Dispatched when the FosfrShellSWF has completed loading.Navigation
   Dispatched when FosfrShellSWF has completed loading.Navigation
Property detail
autoShellLoadproperty
public var autoShellLoad:Boolean

Boolean value, specifies whether, upon completion of loading of the Fosfr configuration xml file, the FosfrShellSWF file should automatically load in. Setting this to false is useful if you wish to add additional files to the ShellSWF preload. call the fosfr.navigation.shellLoader.load() method from the init method of your FosfrMainSWF file and pass the additional files in the preloadArray parameter.

The default value is true.

See also

autoSubLoadproperty 
public var autoSubLoad:Boolean

Boolean value, specifies whether, upon completion of loading of the FosfrShellSWF file, the first FosfrSubSWF file cued for load should automatically load in. The first file is determined by the SWFAddressHandler instance if enableSWFAddress is set to true, otherwise it defaults to loading the first file specified in the NavArray.

The default value is true.

See also

currentSectionproperty 
currentSection:int  [read-only]

The numerical value of the subSWF currently loaded in relation to its position in the NavArray class. A value of -1 means no section currently is loaded.

The default value is -1.

Implementation
    public function get currentSection():int
enableGraphicalNavproperty 
public var enableGraphicalNav:Boolean

Boolean value, specifies whether to instantiate an instance of the GraphicalNavController class.

The default value is false.

See also

enableSWFAddressproperty 
public var enableSWFAddress:Boolean

Boolean value, specifies whether to instantiate an instance of the SWFAddressHandler class.

The default value is false.

See also

graphicalNavHandlerproperty 
graphicalNavHandler:GraphicalNavController  [read-only]

An instance of the GraphicalNavController class.

Implementation
    public function get graphicalNavHandler():GraphicalNavController

See also

com.jeffdePascale.navigation.graphicalNav.GraphicalNavController
initialSubSWFproperty 
initialSubSWF:uint  [read-only]

The numerical value of the subSWF to load from the NavArray class.

The default value is 0.

Implementation
    public function get initialSubSWF():uint
navArrayproperty 
navArray:NavArray  [read-only]

An instance of the NavArray class.

Implementation
    public function get navArray():NavArray

See also

preloadInitialSubSWFWithShellproperty 
public var preloadInitialSubSWFWithShell:Boolean

Boolean value, specifies whether the initial SubSWF file for the site should be preloaded with the shell file. If set to true, the skipPreload parameter of the subLoader.load() method for the first section is set to false.

The default value is true.

See also

com.jeffdePascale.navigation.subLoader
shellClipNameproperty 
public var shellClipName:String

String value specifying the instance name of the displayObject in the fosfrMainSWF file that the FosfrShellSWF file should be loaded into.

The default value is shellHolder_mc.

shellLoaderproperty 
shellLoader:ShellLoader  [read-only]

An instance of the ShellLoader class.

Implementation
    public function get shellLoader():ShellLoader

See also

com.jeffdePascale.navigation.loaders.ShellLoader
shellStringproperty 
public var shellString:String

String value, specifies the file name of the FosfrShellSWF file to load in, minus the ".swf" file extension.

The default value is shell.

skipShellPreloadproperty 
public var skipShellPreload:Boolean

Boolean value, specifies whether the FosfrShellSWF file should be preloaded or just loaded directly.

The default value is false.

subLoaderproperty 
subLoader:SubLoader  [read-only]

An instance of the SubLoader class.

Implementation
    public function get subLoader():SubLoader

See also

com.jeffdePascale.navigation.loaders.SubLoader
subSWFClipNameproperty 
public var subSWFClipName:String

String value specifying the instance name of the displayObject in the fosfrShellSWF file that the FosfrSubSWF files should be loaded into.

The default value is subSWFHolder_mc.

swfAddressHandlerproperty 
swfAddressHandler:SWFAddressHandler  [read-only]

An instance of the SWFAddressHandler class.

Implementation
    public function get swfAddressHandler():SWFAddressHandler

See also

com.jeffdePascale.navigation.swfAddress.SWFAddressHandler
Constructor detail
Navigation()constructor
public function Navigation(_fosfr:Fosfr, sectionArray:Array)

Creates an instance of the Navigation class.

Parameters
_fosfr:Fosfr — an instance of the Fosfr class.
 
sectionArray:Array — an array of files to be passed to the instance of the NavArray class, specified as subSWF files by the configuration xml file for the Fosfr project. This array must be generated using the XMLListToArray.convert() method in the utils folder.

See also

com.jeffdePascale.fosfr.FosfrMainSWF
com.jeffdePascale.fosfr.utils.XMLListToArray.convert
Method detail
initialize()method
public function initialize():void

Intializes the Navigation class and starts the loading process.

initialSubLoad()method 
public function initialSubLoad(deepLink:Array = null, varObj:Object = null, skipPreload:Boolean = false, preloadArray:Array = null):voidParameters
deepLink:Array (default = null)
 
varObj:Object (default = null)
 
skipPreload:Boolean (default = false)
 
preloadArray:Array (default = null)
Event detail
shellLoadedevent 
Event object type: com.jeffdePascale.fosfr.navigation.NavigationEvent
NavigationEvent.type property = com.jeffdePascale.fosfr.navigation.NavigationEvent.SHELL_LOADED

Dispatched when the FosfrShellSWF has completed loading.

The NavigationEvent.SHELL_LOADED constant defines the value of the type property of the event object for a shellLoaded event.

The properties of the event object have the following values:

Property Value
type "complete"
bubbles A Boolean value.
cancelable A Boolean value.
subSWFLoadedevent  
Event object type: com.jeffdePascale.fosfr.navigation.NavigationEvent
NavigationEvent.type property = com.jeffdePascale.fosfr.navigation.NavigationEvent.SUB_SWF_LOADED

Dispatched when FosfrShellSWF has completed loading.

The NavigationEvent.SUB_SWF_LOADED constant defines the value of the type property of the event object for a subSWFLoaded event.

The properties of the event object have the following values:

Property Value
type "complete"
bubbles A Boolean value.
cancelable A Boolean value.