Flash ActionScript 和 Flex ActionScript 之间的主要区别是什么?为什么Flash不能直接编译Flex生成的AS文件?

发布于 2024-09-01 01:59:00 字数 163 浏览 3 评论 0原文

Flash ActionScript 和 Flex ActionScript 之间的主要区别是什么? 为什么Flash不能直接编译Flex生成的AS文件(使用keep-as)?

一些问题是 - 我想使用 Flash CS5 编译从 MXML .AS 文件生成...但在我看来我不能...为什么?

What are main differences between flash ActionScript and Flex actionscript?
Why Flash can not compile AS files generated from Flex (with keep-as) directly?

Some problem is - I want to compile generated from MXML .AS files using Flash CS5... But it appears to me I can not... Why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱你不解释 2024-09-08 01:59:00

原因是 Flex Builder(用于创建 Flex 应用程序的软件程序)和 Flex Framework 之间存在差异。

Flex 框架是一组基于 ActionScript 构建的类和组件,它们扩展了已有的内容。 Flex Builder 可以访问 Flex Framework 中的所有代码,而 Flash Professional 则不能。

例如,这就是为什么 [Bindable] 关键字在 Flash 中不起作用 - 使其在 Flex 应用程序中神奇地工作的所有代码在 Flash 中都不存在。

也就是说,他们在整合两者方面已经取得了很大的进展。现在,您可以在 Flash CS5 中构建一个组件并将其放入 Flash Builder(他们最近将 Flex Builder 更名为 Flash Builder)并使用它 - 但仍然无法从 Flash Builder 获取 .mxml 文件并在 Flash 中对其进行编译。

我希望这会有所帮助,我知道这些区别可能很棘手。

The reason is that there's a difference between Flex Builder (the software program you use to create Flex apps) and the Flex Framework.

The Flex Framework is a set of classes and components built on ActionScript that extend what's already there. Flex Builder has access to all of the code in the Flex Framework - Flash Professional does not.

That's why, for instance, the [Bindable] keyword doesn't work in Flash - all of the code that makes it magically work in Flex apps doesn't exist in Flash.

That said, they've come a long way towards integrating the two. Right now you can build a component in Flash CS5 and drop it into Flash Builder (they renamed Flex Builder to Flash Builder recently) and use it - but it's still not possible to take an .mxml file from Flash Builder and compile it in Flash.

I hope that helps, I know the distinctions can be tricky.

中性美 2024-09-08 01:59:00

Actionscript 也是一样,您可以使用 Flex Builder 来编写代码,并使用 Flash Authoriting Tool 来编译所有内容。你不能做的是在Flash Authoriting中使用特定的Flex技术,例如mxml,但它与actionscript无关。

Actionscript is the same, you can work with the Flex Builder for the code and compile everything with the Flash Authoriting Tool. What you can't do is using specific Flex technologies like mxml in Flash Authoriting, but it's not related to actionscript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文