| Package | com.pcthomatos.swfseolite |
| Class | public class SWFSEOLite |
| Inheritance | SWFSEOLite flash.events.EventDispatcher |
...
var swfseolite:SWFSEOLite = new SWFSEOLite("index.html", "altContent", someSpriteOnTheStage);
swfseolite.preloaderTextColor = 0xFFFFFF;
swfseolite.preloaderBarBorderColor = 0x000000;
swfseolite.preloaderBytesColor = 0xFFFFFF;
swfseolite.preloaderBarColor = 0xFFFF00;
swfseolite.addEventListener(SWFSEOLite.READY, renderSite_Listener);
swfseolite.load();
}
private function renderSite_Listener(e:Event):void {
e.currentTarget.removeEventListener(SWFSEOLite.READY, renderSite_Listener);
ul = e.currentTarget.ul;
...
See also
| Property | Defined by | ||
|---|---|---|---|
| preloaderBarBorderColor : uint [write-only] Sets the preloader loader bar border color.
| SWFSEOLite | ||
| preloaderBarColor : uint [write-only] Sets the preloader loader bar color.
| SWFSEOLite | ||
| preloaderBytesColor : uint [write-only] Sets the preloader text color for the bytes loaded / bytes total text.
| SWFSEOLite | ||
| preloaderTextColor : uint [write-only] Sets the preloader text color for the preloader status text ("Initializing Loader", "Loading...").
| SWFSEOLite | ||
| ul : Object The
ul property is an object containing all the assets loaded in with UltraLoader. | SWFSEOLite | ||
| Method | Defined by | ||
|---|---|---|---|
|
SWFSEOLite(flashHTMLPage:String, swfObjectAltContentDivId:String = "altContent", dispObj:DisplayObjectContainer = null, preloaderClass:Class = null)
Creates the SWFSEOLite object.
| SWFSEOLite | ||
|
load():void
Activates SWFSEOLite.
Once all SWFSEOLite properties have been set, run this method to begin loading. | SWFSEOLite | ||
| Constant | Defined by | ||
|---|---|---|---|
| READY : String = "swfseoLiteReady" [static] The
READY constant defines the value of the type property of the event object for a swfseoLiteReady event.Once this Event is dispatched your page swf can access the ul object which contains all the assets loaded in with SWFSEOLite. | SWFSEOLite | ||
| preloaderBarBorderColor | property |
preloaderBarBorderColor:uint [write-only]Sets the preloader loader bar border color.
The default value is 0x666666.
public function set preloaderBarBorderColor(value:uint):void
See also
| preloaderBarColor | property |
preloaderBarColor:uint [write-only]Sets the preloader loader bar color.
The default value is 0x66FF66.
public function set preloaderBarColor(value:uint):void
See also
| preloaderBytesColor | property |
preloaderBytesColor:uint [write-only]Sets the preloader text color for the bytes loaded / bytes total text.
The default value is 0xFF6666.
public function set preloaderBytesColor(value:uint):void
See also
| preloaderTextColor | property |
preloaderTextColor:uint [write-only]Sets the preloader text color for the preloader status text ("Initializing Loader", "Loading...").
The default value is 0xFFFFFF.
public function set preloaderTextColor(value:uint):void
See also
| ul | property |
public var ul:Object The ul property is an object containing all the assets loaded in with UltraLoader.
See also
| SWFSEOLite | () | constructor |
public function SWFSEOLite(flashHTMLPage:String, swfObjectAltContentDivId:String = "altContent", dispObj:DisplayObjectContainer = null, preloaderClass:Class = null)
Creates the SWFSEOLite object. Once SWFSEOLite has completed loading and you've collected the data from the ul object, you can nullify (destroy) it.
flashHTMLPage:String — The page from which to load in content. Example: "index.html"
|
|
swfObjectAltContentDivId:String (default = "altContent") — The div tag containing UltraLoader data.
|
|
dispObj:DisplayObjectContainer (default = null) — If you want a progress bar to display. If you are only loading text it is recommended that you leave this value set to null.
|
|
preloaderClass:Class (default = null) — preloaderClass Sets a preloader Custom Class so you can design your own. But it must implment ULPreloaderInterface. Other preloader parameters are ignored when a custom class is used. |
See also
| load | () | method |
public function load():void Activates SWFSEOLite.
Once all SWFSEOLite properties have been set, run this method to begin loading.
| READY | constant |
public static const READY:String = "swfseoLiteReady" The READY constant defines the value of the type property of the event object for a swfseoLiteReady event.
Once this Event is dispatched your page swf can access the ul object which contains all the assets loaded in with SWFSEOLite.
...
addEventListener(SWFSEOLite.READY, render_Listener);
function render_Listener(e:Event):void{
removeEventListener(SWFSEOLite.READY, render_Listener);
// use of ul object to set local vars etc.
...