Packagecom.dwuser.ss4.skins
Classpublic class LoaderSkin
InheritanceLoaderSkin Inheritance FlexSprite Inheritance flash.display.Sprite
ImplementsIFlexDisplayObject, ISimpleStyleClient, IStateClient



Public Properties
 PropertyDefined by
  currentState : String
LoaderSkin
  measuredHeight : Number
[read-only] The measured height of this object.
LoaderSkin
  measuredWidth : Number
[read-only] The measured width of this object.
LoaderSkin
  styleName : Object
A parent component used to obtain style values.
LoaderSkin
Protected Properties
 PropertyDefined by
  content : Sprite
LoaderSkin
  contentMask : Sprite
LoaderSkin
  _currentState : String = "null"
LoaderSkin
  img : DisplayObject
LoaderSkin
  loadStarted : Boolean = false
LoaderSkin
  skinURL : String
LoaderSkin
Public Methods
 MethodDefined by
  
Constructor.
LoaderSkin
  
getStyle(styleProp:String):*
LoaderSkin
  
LoaderSkin
  
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
LoaderSkin
  
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
LoaderSkin
  
styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
LoaderSkin
 Inherited
toString():String
Returns a string indicating the location of this object within the hierarchy of DisplayObjects in the Application.
FlexSprite
Protected Methods
 MethodDefined by
  
removedHandler(event:Event):void
LoaderSkin
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
LoaderSkin
Property detail
contentproperty
protected var content:Sprite
contentMaskproperty 
protected var contentMask:Sprite
_currentStateproperty 
protected var _currentState:String = "null"
currentStateproperty 
currentState:String  [read-write]Implementation
    public function get currentState():String
    public function set currentState(value:String):void
imgproperty 
protected var img:DisplayObject
loadStartedproperty 
protected var loadStarted:Boolean = false
measuredHeightproperty 
measuredHeight:Number  [read-only]

The measured height of this object. This should be overridden by subclasses to return the preferred height for the skin.

Implementation
    public function get measuredHeight():Number
measuredWidthproperty 
measuredWidth:Number  [read-only]

The measured width of this object. This should be overridden by subclasses to return the preferred width for the skin.

Implementation
    public function get measuredWidth():Number
skinURLproperty 
protected var skinURL:String
styleNameproperty 
styleName:Object  [read-write]

A parent component used to obtain style values. This is typically set to the component that created this skin.

Implementation
    public function get styleName():Object
    public function set styleName(value:Object):void
Constructor detail
LoaderSkin()constructor
public function LoaderSkin()

Constructor.

Method detail
getStyle()method
public function getStyle(styleProp:String):*Parameters
styleProp:String

Returns
*
invalidateDisplayList()method 
public function invalidateDisplayList():void
move()method 
public function move(x:Number, y:Number):void

Moves this object to the specified x and y coordinates.

Parameters
x:Number — The horizontal position, in pixels.
 
y:Number — The vertical position, in pixels.
removedHandler()method 
protected function removedHandler(event:Event):voidParameters
event:Event
setActualSize()method 
public function setActualSize(newWidth:Number, newHeight:Number):void

Sets the height and width of this object.

Parameters
newWidth:Number — The width, in pixels, of this object.
 
newHeight:Number — The height, in pixels, of this object.
styleChanged()method 
public function styleChanged(styleProp:String):void

Whenever any style changes, redraw this skin. Subclasses can override this method and perform a more specific test before calling invalidateDisplayList().

Parameters
styleProp:String — The name of the style property that changed, or null if all styles have changed.
updateDisplayList()method 
protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number