扩展 Flash |
|
|
|
| 对象 > Document 对象 > 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);
|
|
|
|