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.
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
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):voidgradientBaseColor:uint
This property can be used as the source for data binding.
Implementation public function get gradientBaseColor():uint public function set gradientBaseColor(value:uint):voidgradientDeltaColor:uint
This property can be used as the source for data binding.
Implementation public function get gradientDeltaColor():uint public function set gradientDeltaColor(value:uint):voidimageAlpha:Number
This property can be used as the source for data binding.
Implementation public function get imageAlpha():Number public function set imageAlpha(value:Number):voidimageFillMode:String
This property can be used as the source for data binding.
Implementation public function get imageFillMode():String public function set imageFillMode(value:String):voidimageFilters:Array
This property can be used as the source for data binding.
Implementation public function get imageFilters():Array public function set imageFilters(value:Array):voidimageScaleX:Number
This property can be used as the source for data binding.
Implementation public function get imageScaleX():Number public function set imageScaleX(value:Number):voidimageScaleY:Number
This property can be used as the source for data binding.
Implementation public function get imageScaleY():Number public function set imageScaleY(value:Number):voidimageSource:Object
This property can be used as the source for data binding.
Implementation public function get imageSource():Object public function set imageSource(value:Object):voidimageVisible:Boolean
This property can be used as the source for data binding.
Implementation public function get imageVisible():Boolean public function set imageVisible(value:Boolean):voidimageX:Number
This property can be used as the source for data binding.
Implementation public function get imageX():Number public function set imageX(value:Number):voidimageY:Number
This property can be used as the source for data binding.
Implementation public function get imageY():Number public function set imageY(value:Number):voidpublic function Background()
override protected function getCurrentSkinState():String
Returns the current state of this instance, since its skins should have a matching
set of states.
Returns 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)
public static const MIME_TYPE_GIF:String = image/gif
public static const MIME_TYPE_JPG:String = image/jpeg
public static const MIME_TYPE_PNG:String = image/png
Copyright Adobe Systems Incorporated, all rights reserved, for internal use only Thu Oct 14 2010, 03:29 PM -07:00