| 套件 | mx.graphics |
| 類別 | public class SolidColor |
| 繼承 | SolidColor EventDispatcher Object |
| 實作 | IFill |
| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
預設 MXML 屬性color
更多範例
相關 API 元素
公用屬性
| 屬性 | 定義自 | ||
|---|---|---|---|
| alpha : Number
The transparency of a color. | SolidColor | ||
| color : uint
A color value. | SolidColor | ||
![]() | constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | |
公用方法
| 方法 | 定義自 | ||
|---|---|---|---|
Constructor. | SolidColor | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | |
Starts the fill. | SolidColor | ||
![]() |
會將事件傳送到事件流程。 | EventDispatcher | |
Ends the fill. | SolidColor | ||
![]() |
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | |
![]() |
指出物件是否有已定義的指定屬性。 | Object | |
![]() |
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | |
![]() |
指出指定的屬性是否存在,以及是否可列舉。 | Object | |
![]() |
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | |
![]() |
為迴圈作業設定動態屬性的可用性。 | Object | |
![]() |
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | |
![]() |
會傳回指定之物件的字串形式。 | Object | |
![]() |
會傳回指定之物件的基本值。 | Object | |
![]() |
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher | |
屬性詳細資訊
alpha | 屬性 |
alpha:Number| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).
預設值為 1.0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange 事件。
實作
public function get alpha():Number public function set alpha(value:Number):voidcolor | 屬性 |
建構函式詳細資料
SolidColor | () | 建構函式 |
public function SolidColor(color:uint = 0x000000, alpha:Number = 1.0)| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數color:uint (default = 0x000000) — Specifies the color.
The default value is 0x000000 (black).
| |
alpha:Number (default = 1.0) — Specifies the level of transparency.
Valid values range from 0.0 (completely transparent)
to 1.0 (completely opaque).
The default value is 1.0.
|
方法詳細資訊
begin | () | 方法 |
public function begin(target:Graphics, targetBounds:Rectangle, targetOrigin:Point):void| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
Starts the fill.
參數
target:Graphics — The target Graphics object that is being filled.
| |
targetBounds:Rectangle — The Rectangle object that defines the size of the fill
inside the target.
If the dimensions of the Rectangle are larger than the dimensions
of the target, the fill is clipped.
If the dimensions of the Rectangle are smaller than the dimensions
of the target, the fill expands to fill the entire
target.
| |
targetOrigin:Point — The Point that defines the origin (0,0) of the shape in the
coordinate system of target.
|
end | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性