How to make a small flash swf with ComboBox in Actionscript 3?
Posted
by Sint
on Stack Overflow
See other posts from Stack Overflow
or by Sint
Published on 2010-02-11T17:45:21Z
Indexed on
2010/04/12
15:43 UTC
Read the original article
Hit count: 355
I have a pure Actionscript 3 project, using flash.* libraries, compiles down to about 6k (using mxmlc). Program handles about 1k shapes, a few sprites, a sockets connection, works great (tastes less filling).
Now, how would I add a ComboBox control without incurring excessive bloat?
More specificially, I would like to keep the size under 100k.
So far I have tried:
- Adobe mx.controls ComboBoxexample - simple mxml example compiles to 200+k both on my main Linux Box using mxmlc and in Windows using Flash Builder 4
- Yahoo Astra - uses mx libraries underneath(so as bloated as Adobe?), plus does not contain exact ComboBox
- Keith Peter's MinimalComps - seems small, but far from providing ComboBox functionality
- SPAS (Swing Package for Actionscript) - compiles to 130k, but alpha version of ComboBox does not let me adjust height...
- asuilib - compiles to 40k, unfortunately this ComboBox does not provide for scrolling items...if it does not fit on screen no way to scroll to it
Now my questions:
- Is there a way to lower size for projects importing mx.controls ?
- Maybe there is a way to fix SPAS or asuilib ComboBoxes?
- Perhaps, there are some other libraries which provide a ComboBox(or DropList)?
© Stack Overflow or respective owner