套件 | mx.core |
類別 | public class SWFBridgeGroup |
繼承 | SWFBridgeGroup EventDispatcher Object |
實作 | ISWFBridgeGroup |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
parentBridge : IEventDispatcher
Allows communication with the parent
if the parent is in a different sandbox. | SWFBridgeGroup |
方法 | 定義自 | ||
---|---|---|---|
SWFBridgeGroup(owner:ISystemManager)
Constructor. | SWFBridgeGroup | ||
Adds a new bridge to the pod. | SWFBridgeGroup | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Tests if the given bridge is one of the sandbox bridges in this group. | SWFBridgeGroup | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
Gets the owner of a bridge and also the DisplayObject
that loaded the child. | SWFBridgeGroup | ||
Gets all of the child bridges in this group. | SWFBridgeGroup | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Removes the child bridge. | SWFBridgeGroup | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
parentBridge | 屬性 |
parentBridge:IEventDispatcher
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Allows communication with the parent
if the parent is in a different sandbox.
May be null
if the parent is in the same sandbox
or this is the top-level root application.
實作
public function get parentBridge():IEventDispatcher
public function set parentBridge(value:IEventDispatcher):void
SWFBridgeGroup | () | 建構函式 |
public function SWFBridgeGroup(owner:ISystemManager)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數owner:ISystemManager — The DisplayObject that owns this group.
This should be the SystemManager of an application.
|
addChildBridge | () | 方法 |
public function addChildBridge(bridge:IEventDispatcher, bridgeProvider:ISWFBridgeProvider):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Adds a new bridge to the pod.
參數
bridge:IEventDispatcher — The bridge to communicate with the child content.
| |
bridgeProvider:ISWFBridgeProvider — The DisplayObject that loaded the content
represented by the bridge. Usually this is will be an instance of the SWFLoader class.
|
containsBridge | () | 方法 |
public function containsBridge(bridge:IEventDispatcher):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Tests if the given bridge is one of the sandbox bridges in this group.
參數
bridge:IEventDispatcher — The bridge to test.
|
Boolean — true if the handle is found; otherwise false .
|
getChildBridgeProvider | () | 方法 |
public function getChildBridgeProvider(bridge:IEventDispatcher):ISWFBridgeProvider
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Gets the owner of a bridge and also the DisplayObject
that loaded the child.
This method is useful when an event is received
and the event.target
is the bridge.
The bridge can then be converted into the owning DisplayObject.
參數
bridge:IEventDispatcher — The target bridge.
|
ISWFBridgeProvider — The object that loaded the child.
|
getChildBridges | () | 方法 |
removeChildBridge | () | 方法 |
public function removeChildBridge(bridge:IEventDispatcher):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Removes the child bridge.
參數
bridge:IEventDispatcher — The bridge to remove.
|
Tue Jun 12 2018, 03:47 PM Z