Actionscript 和 JavaScript 有什么区别
可能的重复:
JavaScript 和 ActionScript 3 之间的主要区别是什么?< /a>
您能否澄清一下 ActionScript 和 JavaScript 之间的区别..
什么是弹性?它是一个像 JavaScript 中的 jQuery 和 Mootools 一样的 ActionScript 库吗?我访问了Flex的官方网站,在那里我看到了我最喜欢的词“开源”标签,并且还带有“60天试用版”标签。我想知道什么是 ActionScript,什么是 Flex。我可以像使用 ActionScript 一样使用 DOM 操作吗?就像开发人员使用 jQuery 和 Mootools、Prototype 等来玩 DOM 一样...
我没有 Actionscript 方面的知识。请有人解释清楚。
Possible Duplicate:
What are the key differences between JavaScript and ActionScript 3?
Can you please give me some clarity on difference between ActionScript and JavaScript..
And what is flex? is it an ActionScript library like like jQuery and Mootools to the JavaScript. I have visisted Flex official website, there I have seen my favourite word "Opensource" tagged and also tag with "60 days trial version". I want to know what is ActionScript and what is Flex. Can i use DOM manipulation as want using ActionScript like developers play with DOM using jQuery and Mootools, Prototype etc...
I Don't have knowledge on Actionscript. Please someone explain it clearly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ActionScript 是 Adobe Flash 平台的主要编程语言。
Flex 是一个用于构建 Flash 平台应用程序的开源 SDK(软件开发工具包)。 Flash Platform 运行时主要是 Adobe AIR 和 Adobe Flash Player 浏览器插件。
Flex SDK 包括命令行编译器和 ActionScript UI 框架。 UI 框架在高层次上类似于 JQuery 之类的东西。大多数人将Flex作为通用术语来指代Flex的所有事物,而不指定“Flex编译器”的“Flex框架”。
Adobe 还提供了一个名为 Flash Builder 的商业 IDE,许多人使用它来构建 Flex 应用程序。您看到的 60 天试用版可能适用于 Flash Builder。不过,我们非常欢迎您使用命令行编译器作为开源 SDK 的一部分,而无需购买 Flash Builder。
另一方面,JavaScript 是一种在网络浏览器中实现的语言;主要用于修改网页而无需重新加载整个页面。
两种语言均符合 ECMA 标准;所以共享非常相似的语法。不过,对象模型将完全不同。
既然您问是否可以使用 ActionScript 进行 DOM 操作;我会说这取决于你的意思。您将无法使用 ActionScript 修改 HTML 页面的 DOM。但是,您可以使用 ActionScript 修改和扩展 Flash 影片 (SWF) 的显示层次结构。
ActionScript is the primary programming language of Adobe's Flash Platform.
Flex is an Open Source SDK (Software Development Kit) for building Flash Platform Applications. The Flash Platform runtimes are primarily Adobe AIR and and the Adobe Flash Player browser plugin.
The Flex SDK includes a command line compiler and an ActionScript UI Framework. The UI Framework would be similar, at a high level, to something like JQuery. Most people use Flex as a generic term to refer to all things Flex without specifying "Flex Framework" of "Flex Compiler".
Adobe also provides a commercial IDE named Flash Builder which is used by many to build Flex applications. The 60 day trial you saw was probably for Flash Builder. However, you are more than welcome to use the command line compiler as part of the open source SDK without a purchase of Flash Builder.
JavaScript on the other hand is a language implemented inside web browsers; primarily for modifying a web page without having to reload the whole page.
Both languages are ECMA compliant; so share very similar syntax. The object model would be radically different, though.
Since you asked if it was possible to DOM manipulation with ActionScript; I'll say that it depends what you mean. You wouldn't be able to use ActionScript to modify an HTML page's DOM. But, you can use ActionScript to modify and extend the display hierarchy of a Flash movie (SWF).