Packagecom.jeffdePascale.fosfr
Classpublic dynamic class FosfrLiteSWF
InheritanceFosfrLiteSWF Inheritance FosfrInitializeSWFPrototype Inheritance FosfrPrototype Inheritance flash.display.MovieClip

One of the core implementation classes for the Fosfr framework, the FosfrLiteSWF class is best implemented as a base class for a SWF file's document class.


Example
The following code shows a typical implementation of FosfrLiteSWF as a document class. This example presumes you do not have an external configuration xml file.
 
 package  {
    
      import com.jeffdePascale.fosfr.FosfrLiteSWF;
    
      public class FosfrLiteExample extends FosfrLiteSWF {
 
       public function FosfrLiteExample() {
           createFosfr();
       }
 
       public override function init():void {
           //begin your code here
       }
   } 
 }
 
 

This example presumes you have an external configuration xml file located relative to this SWF file named "config.xml".
 
 package  {
    
      import com.jeffdePascale.fosfr.FosfrLiteSWF;
    
      public class FosfrLiteExample extends FosfrLiteSWF {
 
       public function FosfrLiteExample() {
           createFosfr("config.xml");
       }
 
       public override function init():void {
           //begin your code here
       }
   } 
 }
 
 

See also

com.jeffdePascale.fosfr.core.FosfrLite


Public Properties
 PropertyDefined by
  fosfr : FosfrLite
[read-only] An instance of the FosfrLite class.
FosfrLiteSWF
Public Methods
 MethodDefined by
  
Creates a new FosfrLiteSWF instance.
FosfrLiteSWF
  
createFosfr(xmlURL:String = null):void
starts the instantiation process of the Fosfr framework.
FosfrLiteSWF
 Inherited
debug(str:*):void
provides a document class level shortcut to the fosfr.debug.update() method.
FosfrPrototype
 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
track(tag:String, forceMethod:String = null, ... args):void
provides a document class level shortcut to the fosfr.tracking.track() method.
FosfrPrototype
Property detail
fosfrproperty
fosfr:FosfrLite  [read-only]

An instance of the FosfrLite class.

Implementation
    public function get fosfr():FosfrLite

See also

Constructor detail
FosfrLiteSWF()constructor
public function FosfrLiteSWF()

Creates a new FosfrLiteSWF instance.

Method detail
createFosfr()method
public override function createFosfr(xmlURL:String = null):void

starts the instantiation process of the Fosfr framework. Unlike FosfrMainSWF, FosfrLiteSWF does not require a configuration xml file to be passed as a parameter to the createFosfr() method. Instead, the properties of the Fosfr framework will be instantiated with their default values.

Parameters
xmlURL:String (default = null) — optional, the url of the configuration xml file, relative to the rootFolder property of FosfrBaseClass.