开发者

Simple flash form, SWF size problem, AS3 and CS4

开发者 https://www.devze.com 2022-12-21 13:21 出处:网络
I want to create a form in AS3, with CS4. So I created a new fla, I dropped a ComboBox, an InputText, a CheckBox and a Button. The size of the binary (SWF) is 42KB 开发者_开发技巧(compressed). It is t

I want to create a form in AS3, with CS4. So I created a new fla, I dropped a ComboBox, an InputText, a CheckBox and a Button. The size of the binary (SWF) is 42KB 开发者_开发技巧(compressed). It is too much! I want to create a landing page and 42KB just for 4 components is too much.

I need to cut the size, I can't stop using any of the components. I was looking at the library trying to delete something and I found that the ComponentShim is where the code of the components is (that's what I understand).

I looked the source file of a contact form in AS3, in the library there is no ComponentShim.

Thanks in advance, any help is welcome.

Jonathan.


If the CS4 UI components are too heavy for your liking then you'll have to use something else as there's no way to make them smaller. The alternative is to write your own lightweight components or try out something like MinimlComps:

http://code.google.com/p/minimalcomps/

Otherwise, if 42K is too much for you, reevaluate the need to use Flash for handling a form on your website.


Finally, I used this library .

It's not so great, it takes me some time to get it work, it's in AS2 (so I have to rewrite some code), but, it's lightweight. It's rare that the basic components of flash are not in the flash player runtime, this creates an overhead that is big if you want to do a banner with flash.

0

精彩评论

暂无评论...
验证码 换一张
取 消