View Full Version : ComboBox - reduce size
recursion
07-05-2007, 11:32 AM
:o Hi. I am using the combobox sample in CS3. The problem is that the sample is 56kb. I need it to be less than 20kb.
Any ideas on how to create an own combobox or how to solve this issue?
Thanks,
Mathis
Sleeve
07-05-2007, 04:01 PM
You'll need to make your own :rolleyes:
I had to do that back in the AS2 days. Got it down to 14k with all the same features as the built in component. It was a great exercise for my very first class. Albeit sloppy, it served its purpose.
Here is the post (http://www.actionscript.org/forums/showthread.php3?t=138407&highlight=combobox)
dr_zeus
07-05-2007, 06:23 PM
I know it doesn't help, but I wanted to point out that a SWF with only a single ComboBox on the stage is 35KB so that future readers of this thread don't get the impression that the ComboBox is extremely large.
Advocate
07-05-2007, 10:30 PM
funny you mention, I have actually been writing my own components, and I'm working on combobox currently. I can't tell you how big it is right now, as its not done yet, but if you're concerned with size, I would assume just drawing super simple graphics in a sprite would be the way to go.
Mine has some special graphic complexity going on, but besides that, its pretty much just a bunch of sprites, an array to hold all the options, and some variable to indicate the current selection.
If anything, writing a combobox class is a good object oriented design exercise.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.