ActionScript 和 JavaScript 的一些差异

 ActionScript 和 JavaScript 的一些差异:

  • ActionScript 不支持特定于浏览器的对象,例如 Document、Window 和 Anchor。
  • ActionScript 没有为所有 JavaScript 内置对象都提供支持。
  • ActionScript 不支持某些 JavaScript 语法构造,例如语句标签。
  • 在 ActionScript 中,eval() 函数只能执行变量引用。
  • ActionScript 2.0 支持 ECMA-262 规范中没有的一些功能,例如类和强类型。这些功能中的很多功能都取自 ECMAScript (ECMA-262) 第 3 版语言规范(请参见 www.ecma-international.org/publications/standards/Ecma-262.htm)。
  • ActionScript 不支持使用 RegExp 对象的正则表达式。但是,Macromedia Central 却支持 RegExp 对象。有关 Macromedia Central 的更多信息,请访问 www.macromedia.com/software/central

你可能感兴趣的:(actionscript)