Simple flash form, SWF size problem, AS3 and CS4
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.
精彩评论