document.as3StrictMode

可用性

Flash CS3 Professional。

用法

document.as3StrictMode

说明

属性;它指定 ActionScript 3.0 编译器在进行编译时是打开 (true) 还是关闭 (false)"严格模式"选项。"严格模式"将导致警告被报告为错误,这意味着如果存在这样的错误编译就会失败。默认值为 true

示例

下面的示例关闭"严格模式"编译器选项。

var myDocument = fl.getDocumentDOM(); 
fl.outputPanel.trace("Strict Mode value before modification is " + myDocument.as3StrictMode); 
myDocument.as3StrictMode = false; 
fl.outputPanel.trace("Strict Mode value after modification is " + myDocument.as3StrictMode); 

另请参见

document.as3WarningsMode