Initialize properly the Fever Framework API's.
Never use this class directly, take a look at Fever class example to see how to initialize your application properly.
name property is used by GAnalytic to start logical
track directory.
Default is the main access class name.
static public onFocusChangeEVENT:EventTypestatic public onResizeEVENT:EventTypestatic public onStateChangeEVENT:EventTypepublic thread:FeverApplication [Read Only]public contextMenu:FvContextMenupublic source:String [Read Only]public url:String [Read Only]public config:FeverConfiguration [Read Only]public name:String [Read Only]public state:ApplicationState [Read Only]public listenApplicationShutDown:Boolean true
If sets to false, all call to quit() method is equal to quit( false );
static public function getInstance(app:FeverApplication, enableConfig:Boolean):CoreApplicationDon't use it in your development.
Fever class control it.
public function addEventListener(type:EventType, listener):Void
Adds passed-in listener for receiving passed-in type event type.
type | Name of the Event. |
listener | Listener object. |
public function removeEventListener(type:EventType, listener):Void
Removes passed-in listener that subscribed to passed-in type event type.
type | Name of the Event. |
listener | Listener object. |
public function broadcastEvent(event:IEvent):VoidBroadcasts event to suscribed listeners.
event | an IEvent instance |
public function getArgument(id:String)
Returns argument value defined by passed-in id.
In browser context, arguments are passed to application using swfobject.js
script or throw the location url using the 'get' location format.
var o = new SWFObject( "Demo_installer.swf", "fswf", "100%", "100%", "8", "#000000" ); o.addVariable("myArg", "blabla"); o.write("flashcontent");
public function hasArgument(id:String):Boolean
Indicates if passed-in id argument is defined in application.
In browser context, arguments are passed to application using swfobject.js
script or throw the location url using the 'get' location format.
var o = new SWFObject( "demo.swf", "fswf", "100%", "100%", "8", "#000000" ); o.addVariable("myArg", "blabla"); o.write("flashcontent");
true if argument is defined, otherwise false
public function setTitle(mainTitle:String, subTitle:String, historyCaption:String):VoidSets application title.
Uses defined context to set the new application container title.
Take a look at ContextManager to see how to define context.
mainTitle | main part of the title ( pass null to keep current )
|
subTitle | title complement ( pass null to keep current )
|
historyCaption | used to show history place ( pass null to keep current )
|
public function formatSubTitle(src:String):StringFormats the sub tile section of application title string.
public function formatHistoryTitle(src:String):StringFormats the history tile section of application title string.
public function getFullTitle():StringReturns full application title. ( with appended and history text )
public function setSize(width:Number, height:Number):VoidSets application size.
Uses defined context to set the new application container size.
Take a look at ContextManager to see how to define context.
public function setLocation(x:Number, y:Number):VoidSets application position in desktop.
Uses defined context to set the new application container size.
Take a look at ContextManager to see how to define context.
public function setFullScreenMode(enabled:Boolean):VoidDefines fullscreen mode of application.
public function openDocument(path:String):Void
Opens a external document located on path using context
engine.
For example BrowserContext opens document in a new browser window, whereas StudioContext use his proper open mecanism.
public function openURL(url:String, window:String, method:String):VoidA simple call to Flash getURL() method.
public function runProcess(app:String, args:String, workingDir:String, hidden:Boolean, waitFor:Boolean)Launch external application and returns result ( if any )
public function protect():VoidDisplay a protect screen of the top of application to avoid user interactions.
public function unprotect():VoidHides a possible protect screen defined using protect() method.
public function init():VoidInternal call. Don't use it in development.
Call by Fever controller class.