適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
fl.motion 

Source  - AS3 Flash

套件fl.motion
類別public class Source
繼承Source Inheritance Object

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

Source 類別會儲存用來產生 Motion 實體之內容的相關資訊。 其中許多屬性都不會影響搭配 Animator 類別使用 ActionScript 所建立的動畫,但是這些屬性都可以用來儲存 Motion XML 中的資料。 transformationPoint 屬性是 ActionScript Motion 實體最重要的屬性。

相關 API 元素



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  dimensions : Rectangle
會指出從中產生 Motion 實體之物件的範圍框位置和大小。
Source
  elementType : String
會指出從中產生 Motion 實體之物件的類型。
Source
  frameRate : Number = NaN
會指出用來產生 Motion 實體之影片的每秒影格數。
Source
  instanceName : String
會指出從中產生 Motion 實體之影片片段所指定的實體名稱。
Source
  linkageID : String
會指出從中產生 Motion 實體之元件的元件庫連結識別名稱。
Source
  rotation : Number = 0
會指出原始物件的 rotation 值。
Source
  scaleX : Number = 1
會指出原始物件的 scaleX 值。
Source
  scaleY : Number = 1
會指出原始物件的 scaleY 值。
Source
  skewX : Number = 0
會指出原始物件的 skewX 值。
Source
  skewY : Number = 0
會指出原始物件的 skewY 值。
Source
  symbolName : String
會指出從中產生 Motion 實體之元件的名稱。
Source
  transformationPoint : Point
會指定從中套用變形之原始物件的變形點或「樞紐」點位置。
Source
  x : Number = 0
會指出原始物件的 x 值。
Source
  y : Number = 0
會指出原始物件的 y 值。
Source
公用方法
 方法定義自
  
Source(xml:XML = null)
Source 實體的建構函式。
Source
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

dimensions

屬性
public var dimensions:Rectangle

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出從中產生 Motion 實體之物件的範圍框位置和大小。 此屬性會儲存 Motion XML 中的資料,但不會影響使用 ActionScript 所建立的 Motion 實體。

elementType

屬性 
public var elementType:String

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出從中產生 Motion 實體之物件的類型。 可能的值為 "rectangle object""oval object""drawing object""group""bitmap""compiled clip""video""text"

frameRate

屬性 
public var frameRate:Number = NaN

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出用來產生 Motion 實體之影片的每秒影格數。 此屬性會儲存 Motion XML 中的資料,但不會影響使用 ActionScript 所建立的 Motion 實體。

instanceName

屬性 
public var instanceName:String

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出從中產生 Motion 實體之影片片段所指定的實體名稱。 此屬性會儲存 Motion XML 中的資料,但不會影響使用 ActionScript 所建立的 Motion 實體。

linkageID

屬性 
public var linkageID:String

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出從中產生 Motion 實體之元件的元件庫連結識別名稱。 此屬性會儲存 Motion XML 中的資料,但不會影響使用 ActionScript 所建立的 Motion 實體。

rotation

屬性 
public var rotation:Number = 0

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 rotation 值。

相關 API 元素

scaleX

屬性 
public var scaleX:Number = 1

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 scaleX 值。

相關 API 元素

scaleY

屬性 
public var scaleY:Number = 1

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 scaleY 值。

相關 API 元素

skewX

屬性 
public var skewX:Number = 0

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 skewX 值。

相關 API 元素

skewY

屬性 
public var skewY:Number = 0

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 skewY 值。

相關 API 元素

symbolName

屬性 
public var symbolName:String

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出從中產生 Motion 實體之元件的名稱。 此屬性會儲存 Motion XML 中的資料,但不會影響使用 ActionScript 所建立的 Motion 實體。

transformationPoint

屬性 
public var transformationPoint:Point

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指定從中套用變形之原始物件的變形點或「樞紐」點位置。 變形點的座標是定義為視覺物件尺寸 (其範圍框) 的百分比。 如果變形點位於範圍框的左上角,則座標為 (0, 0); 而範圍框的右下角則是 (1, 1)。 此屬性可以讓變形點一致地套用至不同比例和註冊點的物件。 變形點可能位於範圍框之外。在這種情況下,座標可能會小於 0 或大於 1。 此屬性對使用 ActionScript 建立的 Motion 實體會有很強的效果。

x

屬性 
public var x:Number = 0

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 x 值。

相關 API 元素

y

屬性 
public var y:Number = 0

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

會指出原始物件的 y 值。

相關 API 元素

建構函式詳細資料

Source

()建構函式
public function Source(xml:XML = null)

語言版本: ActionScript 3.0
產品版本: Flash CS3
執行階段版本: Flash Player 9.0.28.0, AIR 1.0

Source 實體的建構函式。

參數
xml:XML (default = null) — 選擇性的 E4X XML 物件,會以 Motion XML 格式定義 Source 實體。




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。