Package | sekati.load |
Class | public class StyleSheetLoader |
Inheritance | StyleSheetLoader AbstractLoader flash.events.EventDispatcher |
Implements | ILoader |
StyleSheet
content.
var loader : StyleSheetLoader = new StyleSheetLoader( "http://localhost/path/to/style.css" ); loader.addEventListener( Event.INIT, addStyle ); loader.load( ); private function addStyle(e : Event) : void { loader.removeEventListener( Event.INIT, addStyle ); addChild( loader.content ); }
Property | Defined by | ||
---|---|---|---|
bytesLoaded : uint
The loader bytes loaded.
| AbstractLoader | ||
bytesTotal : uint
The loader bytes total.
| AbstractLoader | ||
content : StyleSheet [read-only]
The strictly-typed
StyleSheet loader content. | StyleSheetLoader | ||
context : LoaderContext
Returns
LoaderContext (for Loader types only). | AbstractLoader | ||
dataFormat : String
Returns
URLLoaderDataFormat (for URLLoader types only). | AbstractLoader | ||
loading : Boolean
The loading status of the loader; if
true the loader is loading, if false the loader has not started yet. | AbstractLoader | ||
percent : Number
The loader percentile.
| AbstractLoader | ||
rawContent : *
The loosely-typed
AbstractLoader content. | AbstractLoader | ||
ready : Boolean
The ready status of the loader content; if
true the content is loaded, if false the content is not loaded. | AbstractLoader | ||
request : URLRequest
The loader
URLRequest . | AbstractLoader | ||
soundContext : SoundLoaderContext
Returns
SoundLoaderContext (for Sound types only). | AbstractLoader | ||
url : String
The loader url.
| AbstractLoader |
Method | Defined by | ||
---|---|---|---|
StyleSheetLoader(url:String)
StyleSheetLoader Constructor
| StyleSheetLoader | ||
close():void
Stop the loading process.
| AbstractLoader | ||
destroy():void
Cleanup the
AbstractLoader . | AbstractLoader | ||
dispatchEvent(e:Event):Boolean
Optimized
dispatchEvent only dispatches when there are listeners. | AbstractLoader | ||
load():void
Start the loading process.
| AbstractLoader |
Method | Defined by | ||
---|---|---|---|
closeHandler(e:Event):void
Event.CLOSE handler. | AbstractLoader | ||
configureListeners(isAdd:Boolean = true):void
Configure the adding & removing of loader listeners.
| AbstractLoader | ||
genericErrorHandler(e:ErrorEvent):void
Generic processor for
ErrorEvent 's. | AbstractLoader | ||
initHandler(e:Event):void
Event.INIT handler. | StyleSheetLoader | ||
ioErrorHandler(e:IOErrorEvent):void
IOErrorEvent.IO_ERROR handler. | AbstractLoader | ||
openHandler(e:Event):void
Event.OPEN handler. | AbstractLoader | ||
progressHandler(e:ProgressEvent):void
ProgressEvent.PROGRESS handler. | AbstractLoader | ||
securityErrorHandler(e:SecurityErrorEvent):void
SecurityErrorEvent.SECURITY_ERROR handler. | AbstractLoader |
content | property |
content:StyleSheet
[read-only]
The strictly-typed StyleSheet
loader content.
public function get content():StyleSheet
StyleSheetLoader | () | constructor |
public function StyleSheetLoader(url:String)
StyleSheetLoader Constructor
Parametersurl:String — of the CSS file.
|
initHandler | () | method |
protected override function initHandler(e:Event):void
Event.INIT
handler.
e:Event |