套件 | mx.controls.videoClasses |
類別 | public class CuePointManager |
繼承 | CuePointManager Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
相關 API 元素
方法 | 定義自 | ||
---|---|---|---|
CuePointManager(owner:VideoPlayer, id:uint = 0)
Constructor. | CuePointManager | ||
Adds a cue point. | CuePointManager | ||
Search for a cue point with specified name. | CuePointManager | ||
Returns an Array of all cue points. | CuePointManager | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Removes all cue points. | CuePointManager | ||
Removes a cue point from the currently
loaded FLV file. | CuePointManager | ||
Set the array of cue points. | CuePointManager | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
CuePointManager | () | 建構函式 |
public function CuePointManager(owner:VideoPlayer, id:uint = 0)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數owner:VideoPlayer — The VideoPlayer instance that is the parent of this CuePointManager.
| |
id:uint (default = 0 ) — This parameter is ignored; it is provided only for backwards compatibility.
|
addCuePoint | () | 方法 |
public function addCuePoint(cuePoint:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Adds a cue point.
You can add multiple cue points with the same
name and time. When you call the removeCuePoint()
method
with the name and time, it removes the first matching cue point.
To remove all matching cue points, you have to make additional calls to
the removeCuePoint()
method.
參數
cuePoint:Object — The Object describes the cue
point. It must contain the properties name:String
and time:Number (in seconds).
If the Object does not conform to these
conventions, it throws a VideoError error.
|
Object — A copy of the cue point Object added. The copy has the
following additional properties:
|
擲回值
VideoError — If the arguments are invalid.
|
getCuePointByName | () | 方法 |
public function getCuePointByName(name:String):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Search for a cue point with specified name.
參數
name:String — The name of the cue point.
|
Object — null if no match was found, or
a copy of the matching cue point Object with additional properties:
|
getCuePoints | () | 方法 |
removeAllCuePoints | () | 方法 |
public function removeAllCuePoints():void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Removes all cue points.
removeCuePoint | () | 方法 |
public function removeCuePoint(cuePoint:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Removes a cue point from the currently
loaded FLV file. Only the name
and time
properties are used from the cuePoint
argument to
determine the cue point to be removed.
If multiple cue points match the search criteria, only
one will be removed. To remove all cue points, call this function
repeatedly in a loop with the same arguments until it returns
null
.
參數
cuePoint:Object — The Object must contain at least one of
name:String and time:Number properties, and
removes the cue point that matches the specified properties.
|
Object — An object representing the cue point removed. If there was no
matching cue point, then it returns null .
|
setCuePoints | () | 方法 |
public function setCuePoints(cuePointArray:Array):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Set the array of cue points.
You can add multiple cue points with the same
name and time. When you call the removeCuePoint()
method
with this name, only the first one is removed.
參數
cuePointArray:Array — An Array of cue point objects.
Each cue point object describes the cue
point. It must contain the properties name:String
and time:Number (in seconds).
|
Tue Jun 12 2018, 03:47 PM Z