Packagecom.moto.template.common.view.components.loaders
Classpublic class AbstractMediaLoader
InheritanceAbstractMediaLoader Inheritance fl.core.UIComponent
SubclassesFLVLoader, ImageLoader, SWFLoader, YouTubeVideoLoader

This class describes the general logic of visual content loader.

See also

com.moto.template.common.view.components.loaders.FLVLoader
com.moto.template.common.view.components.loaders.ImageLoader
com.moto.template.common.view.components.loaders.SWFLoader
com.moto.template.common.view.components.loaders.YouTubeVideoLoader
fl.core.UIComponent


Public Properties
 PropertyDefined by
  backgroundAlpha : Number = 0
Background alpha of a component.
AbstractMediaLoader
  backgroundColor : String = "0x000000"
Background color of a component.
AbstractMediaLoader
  horizontalAlign : String
Horizontal align for loaded content.
AbstractMediaLoader
  isLoaded : Boolean
[read-only] True if source is loaded.
AbstractMediaLoader
  progressBar : IAnimatedProgressBar
Loader Progress Bar.
AbstractMediaLoader
  scalingMode : String
Scaling mode for loaded content.
AbstractMediaLoader
  source : String
Source url string, or YouTube video ID.
AbstractMediaLoader
  verticalAlign : String
Vertical align for loaded content.
AbstractMediaLoader
  zooming : Boolean = true
Allow resizing loaded content more than its original value.
AbstractMediaLoader
Public Methods
 MethodDefined by
  
AbstractMediaLoader(scalingMode:String, horizontalAlign:String, verticalAlign:String)
Constructor.
AbstractMediaLoader
  
destroy():void
Calling for destroy component.
AbstractMediaLoader
  
getComponent():UIComponent
Getting UIComponent used in current class; in this case it's identical.
AbstractMediaLoader
  
unload():void
Calling for unload source.
AbstractMediaLoader
Protected Methods
 MethodDefined by
  
configUI():void
AbstractMediaLoader
  
load(source:String):void
Calls source loading; this method is automatically called by set source method after the preliminary information handling.
AbstractMediaLoader
Events
 EventSummaryDefined by
   Dispatched when the component size was changed without setSize.AbstractMediaLoader
Property detail
backgroundAlphaproperty
public var backgroundAlpha:Number = 0

Background alpha of a component.

The default value is 0.

backgroundColorproperty 
public var backgroundColor:String = "0x000000"

Background color of a component.

The default value is "0x000000".

horizontalAlignproperty 
public var horizontalAlign:String

Horizontal align for loaded content.

The default value is center.

isLoadedproperty 
isLoaded:Boolean  [read-only]

True if source is loaded.

Implementation
    public function get isLoaded():Boolean
progressBarproperty 
public var progressBar:IAnimatedProgressBar

Loader Progress Bar.

The default value is null.

scalingModeproperty 
public var scalingMode:String

Scaling mode for loaded content.

The default value is none.

sourceproperty 
source:String  [read-write]

Source url string, or YouTube video ID.

Implementation
    public function get source():String
    public function set source(value:String):void
verticalAlignproperty 
public var verticalAlign:String

Vertical align for loaded content.

The default value is middle.

zoomingproperty 
public var zooming:Boolean = true

Allow resizing loaded content more than its original value.

The default value is true.

Constructor detail
AbstractMediaLoader()constructor
public function AbstractMediaLoader(scalingMode:String, horizontalAlign:String, verticalAlign:String)

Constructor.

Parameters
scalingMode:String — scaling mode
 
horizontalAlign:String — horizontal align
 
verticalAlign:String — vertical align
Method detail
configUI()method
protected override function configUI():void

destroy()method 
public function destroy():void

Calling for destroy component.

getComponent()method 
public function getComponent():UIComponent

Getting UIComponent used in current class; in this case it's identical.

Returns
UIComponent — UIComponent return instace of UIComponent
load()method 
protected function load(source:String):void

Calls source loading; this method is automatically called by set source method after the preliminary information handling.

Parameters
source:String
unload()method 
public function unload():void

Calling for unload source.

Event detail
motoObjectSizeUpdatedevent 
Event object type: com.moto.template.common.events.UpdateMotoObjectEvent

Dispatched when the component size was changed without setSize.