Packagecom.adobe.portfolio.components
Classpublic class Background
InheritanceBackground Inheritance spark.components.supportClasses.SkinnableComponent
Implements mx.managers.IFocusManagerComponent

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The Background class extends SkinnableComponent and draws the background of a navigator display window. It provides the capability to draw a mix of solid color, gradients, and images.



Public Properties
 PropertyDefined By
  gradientAlpha : Number
Background
  gradientBaseColor : uint
Background
  gradientDeltaColor : uint
Background
  imageAlpha : Number
Background
  imageFillMode : String
Background
  imageFilters : Array
Background
  imageScaleX : Number
Background
  imageScaleY : Number
Background
  imageSource : Object
Background
  imageVisible : Boolean
Background
  imageX : Number
Background
  imageY : Number
Background
Public Methods
 MethodDefined By
  
Background
  
setCurrentState(stateName:String, playTransition:Boolean = true):void
[override] Sets the state of the skin as well as the state of this instance.
Background
Protected Methods
 MethodDefined By
  
[override] Returns the current state of this instance, since its skins should have a matching set of states.
Background
Skin States

To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.


 Skin State Description Defined By
  
linear
Background
  
radial
Background
  
solid
Background
Public Constants
 ConstantDefined By
  MIME_TYPE_GIF : String = image/gif
[static]
Background
  MIME_TYPE_JPG : String = image/jpeg
[static]
Background
  MIME_TYPE_PNG : String = image/png
[static]
Background
Property Detail
gradientAlphaproperty
gradientAlpha:Number

This property can be used as the source for data binding.


Implementation
    public function get gradientAlpha():Number
    public function set gradientAlpha(value:Number):void
gradientBaseColorproperty 
gradientBaseColor:uint

This property can be used as the source for data binding.


Implementation
    public function get gradientBaseColor():uint
    public function set gradientBaseColor(value:uint):void
gradientDeltaColorproperty 
gradientDeltaColor:uint

This property can be used as the source for data binding.


Implementation
    public function get gradientDeltaColor():uint
    public function set gradientDeltaColor(value:uint):void
imageAlphaproperty 
imageAlpha:Number

This property can be used as the source for data binding.


Implementation
    public function get imageAlpha():Number
    public function set imageAlpha(value:Number):void
imageFillModeproperty 
imageFillMode:String

This property can be used as the source for data binding.


Implementation
    public function get imageFillMode():String
    public function set imageFillMode(value:String):void
imageFiltersproperty 
imageFilters:Array

This property can be used as the source for data binding.


Implementation
    public function get imageFilters():Array
    public function set imageFilters(value:Array):void
imageScaleXproperty 
imageScaleX:Number

This property can be used as the source for data binding.


Implementation
    public function get imageScaleX():Number
    public function set imageScaleX(value:Number):void
imageScaleYproperty 
imageScaleY:Number

This property can be used as the source for data binding.


Implementation
    public function get imageScaleY():Number
    public function set imageScaleY(value:Number):void
imageSourceproperty 
imageSource:Object

This property can be used as the source for data binding.


Implementation
    public function get imageSource():Object
    public function set imageSource(value:Object):void
imageVisibleproperty 
imageVisible:Boolean

This property can be used as the source for data binding.


Implementation
    public function get imageVisible():Boolean
    public function set imageVisible(value:Boolean):void
imageXproperty 
imageX:Number

This property can be used as the source for data binding.


Implementation
    public function get imageX():Number
    public function set imageX(value:Number):void
imageYproperty 
imageY:Number

This property can be used as the source for data binding.


Implementation
    public function get imageY():Number
    public function set imageY(value:Number):void
Constructor Detail
Background()Constructor
public function Background()



Method Detail
getCurrentSkinState()method
override protected function getCurrentSkinState():String

Returns the current state of this instance, since its skins should have a matching set of states.

Returns
String
setCurrentState()method 
override public function setCurrentState(stateName:String, playTransition:Boolean = true):void

Sets the state of the skin as well as the state of this instance.

Parameters

stateName:String
 
playTransition:Boolean (default = true)

Constant Detail
MIME_TYPE_GIFConstant
public static const MIME_TYPE_GIF:String = image/gif

MIME_TYPE_JPGConstant 
public static const MIME_TYPE_JPG:String = image/jpeg

MIME_TYPE_PNGConstant 
public static const MIME_TYPE_PNG:String = image/png