| 套件 | flash.html |
| 類別 | public class HTMLWindowCreateOptions |
| 繼承 | HTMLWindowCreateOptions Object |
| 執行階段版本: | AIR 1.0 |
window.open() 方法建立新的 HTML 視窗時,這個類別會定義可指定的選項。
這個類別會定義對應至 features 參數中選項的屬性和方法,而該參數會傳遞給 JavaScript 中的 window.open() 方法。
例如,HTML 文件中的 JavaScript (在 HTMLLoader 物件中) 可以包含下列 window.open() 的呼叫,其中 features 參數 (第三個參數) 會列出一些選項:
window.open("http://www.adobe.com", "AdobeWindow", "scrollbars=1,menubar=1,location=0,status=0")您可以在覆寫 HTMLHost 類別之子類別的 createWindow() 方法時使用 HTMLWindowCreateOptions 類別。HTMLLoader 物件會傳遞 HTMLWindowCreateOptions 物件,做為 HTMLHost 物件之 createWindow() 方法的 windowCreateOptions 參數。
相關 API 元素
| 屬性 | 定義自 | ||
|---|---|---|---|
![]() | constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | |
| fullscreen : Boolean = false
指定視窗是否應該為全螢幕。 | HTMLWindowCreateOptions | ||
| height : Number = NaN
指定新視窗所需的初始高度。 | HTMLWindowCreateOptions | ||
| locationBarVisible : Boolean = false
是否應顯示位置列。 | HTMLWindowCreateOptions | ||
| menuBarVisible : Boolean = false
指定是否應顯示選單列。 | HTMLWindowCreateOptions | ||
| resizable : Boolean = false
指定視窗是否應該可以調整大小。 | HTMLWindowCreateOptions | ||
| scrollBarsVisible : Boolean = true
指定是否應顯示捲軸。 | HTMLWindowCreateOptions | ||
| statusBarVisible : Boolean = false
指定是否應顯示狀態列。 | HTMLWindowCreateOptions | ||
| toolBarVisible : Boolean = false
指定是否應顯示工具列。 | HTMLWindowCreateOptions | ||
| width : Number = NaN
指定新視窗所需的初始寬度。 | HTMLWindowCreateOptions | ||
| x : Number = NaN
指定螢幕上新視窗所需的初始 x 位置。 | HTMLWindowCreateOptions | ||
| y : Number = NaN
指定螢幕上新視窗所需的初始 y 位置。 | HTMLWindowCreateOptions | ||
fullscreen | 屬性 |
public var fullscreen:Boolean = false| 執行階段版本: | AIR 1.0 |
指定視窗是否應該為全螢幕。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "fullscreen"、"fullscreen=1" 或 "fullscreen=y",這個屬性就會設定為 true。
height | 屬性 |
public var height:Number = NaN| 執行階段版本: | AIR 1.0 |
指定新視窗所需的初始高度。這是設定為 JavaScript window.open() 方法呼叫 features 字串中的 height 值。如果此值為 NaN (當 features 字串中未指定 height 值時的預設值),則會使用預設的視窗高度。
locationBarVisible | 屬性 |
public var locationBarVisible:Boolean = false| 執行階段版本: | AIR 1.0 |
是否應顯示位置列。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "location"、"location=1" 或 "location=y",這個屬性就會設定為 true。
menuBarVisible | 屬性 |
public var menuBarVisible:Boolean = false| 執行階段版本: | AIR 1.0 |
指定是否應顯示選單列。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "menubar"、"menubar=1" 或 "menubar=y",這個屬性就會設定為 true。
resizable | 屬性 |
public var resizable:Boolean = false| 執行階段版本: | AIR 1.0 |
指定視窗是否應該可以調整大小。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "resizable"、"resizable=1" 或 "resizable=y",這個屬性就會設定為 true。
scrollBarsVisible | 屬性 |
public var scrollBarsVisible:Boolean = true| 執行階段版本: | AIR 1.0 |
指定是否應顯示捲軸。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "scrollbars"、"scrollbars=1" 或 "scrollbars=y",這個屬性就會設定為 true。
statusBarVisible | 屬性 |
public var statusBarVisible:Boolean = false| 執行階段版本: | AIR 1.0 |
指定是否應顯示狀態列。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "status"、"status=1" 或 "status=y",這個屬性就會設定為 true。
toolBarVisible | 屬性 |
public var toolBarVisible:Boolean = false| 執行階段版本: | AIR 1.0 |
指定是否應顯示工具列。如果 JavaScript window.open() 方法呼叫的 features 字串包含 "toolbar"、"toolbar=1" 或 "toolbar=y",這個屬性就會設定為 true。
width | 屬性 |
public var width:Number = NaN| 執行階段版本: | AIR 1.0 |
指定新視窗所需的初始寬度。這是設定為 JavaScript window.open() 方法呼叫 features 字串中的 width 值。如果此值為 NaN (當 features 字串中未指定 width 值時的預設值),則會使用預設的視窗寬度。
x | 屬性 |
public var x:Number = NaN| 執行階段版本: | AIR 1.0 |
指定螢幕上新視窗所需的初始 x 位置。這是設定為 JavaScript window.open() 方法呼叫 features 字串中的 left 或 screenX 指定值。如果此值為 NaN (當 features 字串中未指定 left 或 screenX 值時的預設值),則會使用預設的視窗 x 位置。
y | 屬性 |
public var y:Number = NaN| 執行階段版本: | AIR 1.0 |
指定螢幕上新視窗所需的初始 y 位置。這是設定為 JavaScript window.open() 方法呼叫 features 字串中的 top 或 screenY 指定值。如果此值為 NaN (當 features 字串中未指定 left 或 screenX 值時的預設值),則會使用預設的視窗 x 位置。
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性