Packagecom.jeffdePascale.fosfr.core
Classpublic class FosfrBaseClass
InheritanceFosfrBaseClass Inheritance flash.events.EventDispatcher
SubclassesFosfr, FosfrLite

The core of the Fosfr framework. FosfrBaseClass instantiates instances of the Debug and Tracking classes.

See also

com.jeffdePascale.fosfr.debug.Debug
com.jeffdePascale.fosfr.tracking.Tracking


Public Properties
 PropertyDefined by
  debug : Debug
[read-only] An instance of the Fosfr Debug class.
FosfrBaseClass
  flashVars : Object
[read-only] An object containg variables passed in via the FlashVars parameter of the SWF embed.
FosfrBaseClass
  fosfrNotification : FosfrNotification
[read-only]
FosfrBaseClass
  local : Boolean
[read-only] A Boolean value, passed in via flashVars, specifying whether the SWF file is running locally.
FosfrBaseClass
  projectName : String
[read-only] A string value of the name of the project, as specified in the configuration XML file's projectName node.
FosfrBaseClass
  rootFolder : String
[read-only] A string value, passed in via flashVars, specifying where the root of the SWF folder structure is relative to the embed.
FosfrBaseClass
  siteParameters : XMLList
[read-only] An object pulled from the configuration xml file's siteParameters node, if applicable.
FosfrBaseClass
  tracking : Tracking
[read-only] An instance of the Fosfr Tracking class.
FosfrBaseClass
  urlInfo : URLInfo
[read-only] An instance of the URLInfo class.
FosfrBaseClass
  version : String
[read-only] A string value for the version number of the project, as specified in the version attribute of the configration XML file's projectName node.
FosfrBaseClass
Protected Properties
 PropertyDefined by
  xmlListTools : XMLListTools
FosfrBaseClass
Public Methods
 MethodDefined by
  
Instantiates an instance of the FosfrInitializeSWFPrototype class.
FosfrBaseClass
  
loadConfig(_configPath:String):void
Loads the configuration xml file at the url specified.
FosfrBaseClass
Events
 EventSummaryDefined by
   Dispatched when the configuration file has been loaded and parsing has begun.FosfrBaseClass
   Dispatched when Fosfr has completed initialization.FosfrBaseClass
Public Constants
 ConstantDefined by
  BUILD : String = "104"
[static]
FosfrBaseClass
  VERSION : String = ".8 BETA"
[static] The version release number of Fosfr.
FosfrBaseClass
Property detail
debugproperty
debug:Debug  [read-only]

An instance of the Fosfr Debug class.

Implementation
    public function get debug():Debug

See also

flashVarsproperty 
flashVars:Object  [read-only]

An object containg variables passed in via the FlashVars parameter of the SWF embed.

Implementation
    public function get flashVars():Object
fosfrNotificationproperty 
fosfrNotification:FosfrNotification  [read-only]Implementation
    public function get fosfrNotification():FosfrNotification
localproperty 
local:Boolean  [read-only]

A Boolean value, passed in via flashVars, specifying whether the SWF file is running locally. Set to true to disable server specific functionality, such as SWFAddress.

The default value is null.

Implementation
    public function get local():Boolean

See also

projectNameproperty 
projectName:String  [read-only]

A string value of the name of the project, as specified in the configuration XML file's projectName node.

The default value is an empty string.

Implementation
    public function get projectName():String
rootFolderproperty 
rootFolder:String  [read-only]

A string value, passed in via flashVars, specifying where the root of the SWF folder structure is relative to the embed. Utilized internally as well throughout Fosfr for pathing to the appropriate SWF assets.

The default value is true.

Implementation
    public function get rootFolder():String

See also

siteParametersproperty 
siteParameters:XMLList  [read-only]

An object pulled from the configuration xml file's siteParameters node, if applicable.

The default value is null.

Implementation
    public function get siteParameters():XMLList
trackingproperty 
tracking:Tracking  [read-only]

An instance of the Fosfr Tracking class.

Implementation
    public function get tracking():Tracking

See also

urlInfoproperty 
urlInfo:URLInfo  [read-only]

An instance of the URLInfo class.

Implementation
    public function get urlInfo():URLInfo

See also

com.jeffdePascale.core.URLInfo
versionproperty 
version:String  [read-only]

A string value for the version number of the project, as specified in the version attribute of the configration XML file's projectName node.

Implementation
    public function get version():String
xmlListToolsproperty 
protected var xmlListTools:XMLListTools
Constructor detail
FosfrBaseClass()constructor
public function FosfrBaseClass(__displayObj:FosfrInitializeSWFPrototype)

Instantiates an instance of the FosfrInitializeSWFPrototype class.

Parameters
__displayObj:FosfrInitializeSWFPrototype — A reference to the stage of the SWF file.
Method detail
loadConfig()method
public function loadConfig(_configPath:String):void

Loads the configuration xml file at the url specified.

Parameters
_configPath:String — The url of the configuration xml file, relative to the rootFolder property.

See also

Event detail
configLoadedevent 
Event object type: com.jeffdePascale.fosfr.core.FosfrEvent
FosfrEvent.type property = com.jeffdePascale.fosfr.core.FosfrEvent.CONFIG_LOADED

Dispatched when the configuration file has been loaded and parsing has begun.

The FosfrEvent.CONFIG_LOADED constant defines the value of the type property of the event object for a configLoaded event.

The properties of the event object have the following values:

Property Value
type "configLoaded"
bubbles A Boolean value.
cancelable A Boolean value.
initevent  
Event object type: com.jeffdePascale.fosfr.core.FosfrEvent
FosfrEvent.type property = com.jeffdePascale.fosfr.core.FosfrEvent.INIT

Dispatched when Fosfr has completed initialization.

The FosfrEvent.INIT constant defines the value of the type property of the event object for a init event.

The properties of the event object have the following values:

Property Value
type "init"
bubbles A Boolean value.
cancelable A Boolean value.
Constant detail
BUILDconstant
public static const BUILD:String = "104"
VERSIONconstant 
public static const VERSION:String = ".8 BETA"

The version release number of Fosfr.