# UI Components are not optimized are they?

**URL:** <https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716>\
**Category:** flash\
**Created:** [August 29, 2003, 5:25pm UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716 "2003-08-29T17:25:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmonra](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@ahmonra](https://forum.kirupa.com/u/ahmonra)\
**Post date:** [August 29, 2003, 5:25pm UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716/1 "2003-08-29T17:25:59Z")

</div>

I’ve noticed that adding the standard UI components like checkboxes, radios etc. really bloat up the final .swf filesize. Branden Hall wrote something a while ago saying that although each component may be heavy filesize wise, most of them share resources. So if you add a checkbox, your swf goes up by ~6kb. But if you also add a combobox (or whatever) the final swf would only go up by little more (i.e. not 6kb more).

But I find that if Im trying to build a form using flash, I use a lot of the UI components together. Im looking at a project I’m working on that is mostly script. I have a few gifs for background, and a couple of embedded fonts. These put together with my scripts come to about 20Kb. Not bad I think. But put in a combobox, two groups of 4 radios and one group of 4 beckboxes and now i’m looking at 50 Kb. And thats compressed!!

Is anyone aware of more liteweight UI components out there? Or maybe some optimization techniques for script intensive projects?

Shaheeb R.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2003, 5:46pm UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716/2 "2003-08-29T17:46:58Z")

</div>

You can build your own components. A scrollbar/scroll pane combo I built is like 1 or 2 k

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2003, 8:19pm UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716/3 "2003-08-29T20:19:51Z")

</div>

a font adds more than components!?  
it’s really just the 1st that’s a bit heavy,  
try a new file,add just a scrollbar,  
publish,  
check size, add combo or scrollpane  
publish and compare…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2003, 8:53pm UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716/4 "2003-08-29T20:53:49Z")

</div>

you can do a publishing report. it tells you the size of every component in your movie. file-\>publish settings-\>flash and check the box that says generate size report. You will get a text file telling you how much space each symbol, graphic, etc takes up.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2003, 5:29am UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716/5 "2003-08-30T05:29:59Z")

</div>

The only solution is to build your own components. That’s the best way to be sure and use only the necessary scripts. Also embed only the font outline of the necessary characters you need!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2003, 11:08am UTC](https://forum.kirupa.com/t/ui-components-are-not-optimized-are-they/29716/6 "2003-08-30T11:08:10Z")

</div>

build your own… or use others. Check the macromedia exchange and [flashcomponents.net](http://flashcomponents.net) etc for other lighter flash ui component alternatives.
