Packagecom.pcthomatos.swfseolite
Classpublic class SWFSEOLite
InheritanceSWFSEOLite Inheritance flash.events.EventDispatcher

SWFSEOLite allows you to access content from the html page that renders your flash file. It loads this data with UltraLoader. The benefit is that it allows you to have your content in one central location that is also accessible by search engines. And it also allows you to change your content without the need to recompile your flash files.


Example
        ...
            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

com.pcthomatos.ultraloader.UltraLoader
com.pcthomatos.ultraloader.types


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property detail
preloaderBarBorderColorproperty
preloaderBarBorderColor:uint  [write-only]

Sets the preloader loader bar border color.

The default value is 0x666666.

Implementation
    public function set preloaderBarBorderColor(value:uint):void

See also

preloaderBarColorproperty 
preloaderBarColor:uint  [write-only]

Sets the preloader loader bar color.

The default value is 0x66FF66.

Implementation
    public function set preloaderBarColor(value:uint):void

See also

preloaderBytesColorproperty 
preloaderBytesColor:uint  [write-only]

Sets the preloader text color for the bytes loaded / bytes total text.

The default value is 0xFF6666.

Implementation
    public function set preloaderBytesColor(value:uint):void

See also

preloaderTextColorproperty 
preloaderTextColor:uint  [write-only]

Sets the preloader text color for the preloader status text ("Initializing Loader", "Loading...").

The default value is 0xFFFFFF.

Implementation
    public function set preloaderTextColor(value:uint):void

See also

ulproperty 
public var ul:Object

The ul property is an object containing all the assets loaded in with UltraLoader.

See also

Constructor detail
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.

Parameters
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

Method detail
load()method
public function load():void

Activates SWFSEOLite.

Once all SWFSEOLite properties have been set, run this method to begin loading.

Constant detail
READYconstant
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.


Example
        ...
        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.
        ...