Packagecom.jeffdePascale.fosfr
Classpublic dynamic class FosfrSubSWF
InheritanceFosfrSubSWF Inheritance FosfrSWFPrototype Inheritance FosfrPrototype Inheritance flash.display.MovieClip

One of the core implementation classes for the Fosfr framework, the FosfrSubSWF class is one of three classes used when implementing Fosfr as a full site build, along with FosfrMainSWF and FosfrShellSWF.

FosfrSubSWF functions as a base class for each sub section of the site (called subSWF's in Fosfr).


Example
The following code shows a typical implementation of FosfrSubSWF as a document class.
 
 package  {
    
      import com.jeffdePascale.fosfr.FosfrSubSWF;
    
      public class SubSWFExample extends FosfrSubSWF{
 
          public function SubSWFExample() {
          }
 
       public override function init():void {
              //begin your code here
          }
    } 
    }
 
 



Public Properties
 PropertyDefined by
  fullName : String
an optional full string name value for the SubSWF file, utilized by the SWFAddressHandler instance in the fosfr.navigation branch.
FosfrSubSWF
  sectionID : uint
[read-only] The unit ID value the SWF file in relation to the fosfr.navigation.navArray instance, which tracks subSWF files.
FosfrSubSWF
  varObj : Object
[read-only] An object, optionally passed on instatiation of the FosfrSubSWF file.
FosfrSubSWF
Public Methods
 MethodDefined by
  
FosfrSubSWF
  
attachFosfr(__fosfr:Fosfr):void
FosfrSubSWF
 Inherited
debug(str:*):void
provides a document class level shortcut to the fosfr.debug.update() method.
FosfrPrototype
  
handleSubLink(address:Array):void
Handles the return of subLink data from the SWFAddressHandler instance in the fosfr.navigation branch.
FosfrSubSWF
 Inherited
init():void
Called automatically upon completion of the initialization process by Fosfr, this method should be overriden and used as the starting point for the SWF file.
FosfrPrototype
 Inherited
loadSubSWF(target:*, deepLink:Array = null, loadVariables:Object = null, skipPreload:Boolean = false, preloadArray:Array = null, swfAddressChange:Boolean = true, forcedFullPageName:String = null):void
provides a document class level shortcut to the fosfr.navigation.subLoader.load() method.
FosfrSWFPrototype
  
setSubLink(address:Array):void
FosfrSubSWF
 Inherited
track(tag:String, forceMethod:String = null, ... args):void
provides a document class level shortcut to the fosfr.tracking.track() method.
FosfrPrototype
  
unload():void
Automatically called by FosfrSubSWF when a NavigationEvent.UNLOAD is dispatched from the fosfr.navigation.Navigation class, this method may be overriden to perform custom unload procedures.
FosfrSubSWF
  
Automatically called by FosfrSubSWF upon completion of the unload method, this method must be manually called if the unload method is overriden.
FosfrSubSWF
Property detail
fullNameproperty
public var fullName:String

an optional full string name value for the SubSWF file, utilized by the SWFAddressHandler instance in the fosfr.navigation branch.

See also

sectionIDproperty 
sectionID:uint  [read-only]

The unit ID value the SWF file in relation to the fosfr.navigation.navArray instance, which tracks subSWF files.

Implementation
    public function get sectionID():uint

See also

varObjproperty 
varObj:Object  [read-only]

An object, optionally passed on instatiation of the FosfrSubSWF file. Useful for passing parameters to the loaded SubSWF.

The default value is null.

Implementation
    public function get varObj():Object

See also

Constructor detail
FosfrSubSWF()constructor
public function FosfrSubSWF()
Method detail
attachFosfr()method
public override function attachFosfr(__fosfr:Fosfr):voidParameters
__fosfr:Fosfr
handleSubLink()method 
public function handleSubLink(address:Array):void

Handles the return of subLink data from the SWFAddressHandler instance in the fosfr.navigation branch. Override this method to handle subLink data.

Parameters
address:Array — the string value of the subLink passed from the SWFAddressHandler instance.

See also

setSubLink()method 
public function setSubLink(address:Array):voidParameters
address:Array
unload()method 
public function unload():void

Automatically called by FosfrSubSWF when a NavigationEvent.UNLOAD is dispatched from the fosfr.navigation.Navigation class, this method may be overriden to perform custom unload procedures. Call unloadComplete() at the completion of the manual unload process to notify the navigation class to comlete the unload process. This method is useful both for animation purposes as well as manual garbage collection.

See also

unloadComplete()method 
public function unloadComplete():void

Automatically called by FosfrSubSWF upon completion of the unload method, this method must be manually called if the unload method is overriden.

See also