| Package | com.jeffdePascale.fosfr |
| Class | public dynamic class FosfrLiteSWF |
| Inheritance | FosfrLiteSWF FosfrInitializeSWFPrototype FosfrPrototype flash.display.MovieClip |
FosfrLiteSWF class is best implemented as a base class for a SWF file's document class.
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
}
}
}
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
| Property | Defined by | ||
|---|---|---|---|
| fosfr : FosfrLite
[read-only]
An instance of the
FosfrLite class. | FosfrLiteSWF | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new
FosfrLiteSWF instance. | FosfrLiteSWF | ||
|
createFosfr(xmlURL:String = null):void
starts the instantiation process of the Fosfr framework.
| FosfrLiteSWF | ||
![]() |
debug(str:*):void
provides a document class level shortcut to the
fosfr.debug.update() method. | FosfrPrototype | |
![]() |
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 | |
![]() |
track(tag:String, forceMethod:String = null, ... args):void
provides a document class level shortcut to the
fosfr.tracking.track() method. | FosfrPrototype | |
| fosfr | property |
fosfr:FosfrLite [read-only]
An instance of the FosfrLite class.
public function get fosfr():FosfrLite
See also
| FosfrLiteSWF | () | constructor |
public function FosfrLiteSWF()
Creates a new FosfrLiteSWF instance.
| 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.
xmlURL:String (default = null) — optional, the url of the configuration xml file, relative to the rootFolder property of FosfrBaseClass.
|