套件 | com.adobe.viewsource |
類別 | public class ViewSource |
繼承 | ViewSource Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
viewSourceURL
property of the application container
to the URL of your source code,
the user can view the source code by selecting the
"View Source" context menu item.
相關 API 元素
公用方法
方法 | 定義自 | ||
---|---|---|---|
[靜態]
Adds a "View Source" context menu item
to the context menu of the given object. | ViewSource | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
方法詳細資訊
addMenuItem | () | 方法 |
public static function addMenuItem(obj:InteractiveObject, url:String, hideBuiltIns:Boolean = true):void
Adds a "View Source" context menu item to the context menu of the given object. Creates a context menu if none exists.
參數
obj:InteractiveObject — The object to attach the context menu item to.
| |
url:String — The URL of the source viewer that the "View Source"
item should open in the browser.
| |
hideBuiltIns:Boolean (default = true ) — Optional, defaults to true.
If true, and no existing context menu is attached
to the given item, then when we create the context menu,
we hide all the hideable built-in menu items.
|
Tue Jun 12 2018, 03:47 PM Z