软硬VS动作 [英] Flex vs ActionScript

查看:147
本文介绍了软硬VS动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立/实现Flash视频播放器播放视频。我看过的Flex和构建只是一个VideoElement一个基本的应用程序。它被编译到41K没有静态链接的库和300K与链接的库。我生成的报告,但我仍然不知道为什么我需要所有这些组件只是为了建立一个的VideoPlayer。

I'm trying to build/implement a Flash video player to play videos. I have looked at Flex and built a basic application with just a VideoElement. It gets compiled to 41k without statically linking the libs and 300k with linking the libs. I generated the report but am still not sure why I would need all those components just to build a VideoPlayer.

在另一方面,我有看在ActionScript一些实现,它的编译为10K。为什么文件大小等不同Flex中比纯ActionScript时,他们既可以编译为主权财富基金?也许我很困惑通过何种Flex是如此的解释,将有助于太。谢谢!

On the other hand, I have had a look at some implementations in ActionScript and it's compiled to 10K. Why is the file size so different in Flex than in pure ActionScript when they both compile down to swfs? Perhaps I'm confused by what Flex is so an explanation would help too. Thanks!

推荐答案

Flex的本质上是建立在简单的动作(在MXML文件甚至可以生成到ActionScript类在编译时)的顶部类库,因此简单地说了架空您看到的是,由于Flex框架内的相关性。很多人会尝试创建诸如视频播放器在纯ActionScript来避免这些依赖关系,并保持文件的大小了。

Flex is essentially a library of classes built on top of plain ActionScript (the mxml files even get generated into ActionScript classes at compile time), so in a nutshell the overhead you are seeing is due to dependencies within the Flex framework. Many people will try to create such things as video players in pure ActionScript to avoid these dependencies and keep the file size down.

这篇关于软硬VS动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆