Search code examples
flashactionscript-3flash-cs4

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.


Solution

  • 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.