| Package | com.adobe.portfolio.components |
| Class | public class Background |
| Inheritance | Background spark.components.supportClasses.SkinnableComponent |
| Implements | mx.managers.IFocusManagerComponent |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
getCurrentSkinState():String [override] Returns the current state of this instance, since its skins should have a matching
set of states. | Background | ||
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 | |||
| Constant | Defined 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 | ||
| gradientAlpha | property |
gradientAlpha:NumberThis property can be used as the source for data binding.
public function get gradientAlpha():Number public function set gradientAlpha(value:Number):void| gradientBaseColor | property |
gradientBaseColor:uintThis property can be used as the source for data binding.
public function get gradientBaseColor():uint public function set gradientBaseColor(value:uint):void| gradientDeltaColor | property |
gradientDeltaColor:uintThis property can be used as the source for data binding.
public function get gradientDeltaColor():uint public function set gradientDeltaColor(value:uint):void| imageAlpha | property |
imageAlpha:NumberThis property can be used as the source for data binding.
public function get imageAlpha():Number public function set imageAlpha(value:Number):void| imageFillMode | property |
imageFillMode:StringThis property can be used as the source for data binding.
public function get imageFillMode():String public function set imageFillMode(value:String):void| imageFilters | property |
imageFilters:ArrayThis property can be used as the source for data binding.
public function get imageFilters():Array public function set imageFilters(value:Array):void| imageScaleX | property |
imageScaleX:NumberThis property can be used as the source for data binding.
public function get imageScaleX():Number public function set imageScaleX(value:Number):void| imageScaleY | property |
imageScaleY:NumberThis property can be used as the source for data binding.
public function get imageScaleY():Number public function set imageScaleY(value:Number):void| imageSource | property |
imageSource:ObjectThis property can be used as the source for data binding.
public function get imageSource():Object public function set imageSource(value:Object):void| imageVisible | property |
imageVisible:BooleanThis property can be used as the source for data binding.
public function get imageVisible():Boolean public function set imageVisible(value:Boolean):void| imageX | property |
imageX:NumberThis property can be used as the source for data binding.
public function get imageX():Number public function set imageX(value:Number):void| imageY | property |
imageY:NumberThis property can be used as the source for data binding.
public function get imageY():Number public function set imageY(value:Number):void| Background | () | Constructor |
public function Background()| getCurrentSkinState | () | method |
override protected function getCurrentSkinState():StringReturns the current state of this instance, since its skins should have a matching set of states.
ReturnsString |
| setCurrentState | () | method |
override public function setCurrentState(stateName:String, playTransition:Boolean = true):voidSets the state of the skin as well as the state of this instance.
Parameters
stateName:String | |
playTransition:Boolean (default = true) |
| MIME_TYPE_GIF | Constant |
public static const MIME_TYPE_GIF:String = image/gif| MIME_TYPE_JPG | Constant |
public static const MIME_TYPE_JPG:String = image/jpeg| MIME_TYPE_PNG | Constant |
public static const MIME_TYPE_PNG:String = image/png