Posted on Friday 31 December 2004
Recently got the bit component set (written by Keith Peters ) from the BeamJive store and started switching from v2 components to these on two projects of mine.
This isn't as starightforward as one would wish. First you can't simply swap one for the other because the swap button is disabled, meaning you'll have to drop the coponents on stage, name them, transfer actionscript, transfer component parameters, size appropriately, delete the original and then place it. For the component parameters, transferring with the import/export component properties command by myself (available in the left menu) makes it that much easier. I hope the next version comes with a command to make the switch from v2 to bit components, Keith wrote the book on Flash extensibility, so it's a wonder it's not in there.
Another thing you'll want to do is disable the hand cursor using this:
A thing I noticed is that my textfields' style properties didn't work properly after making the switch. All you need to do is switch from:
To:
Easy enough, but took me a half-hour to dig it from the documentation.
I also noticed that the leading is not the same for text area components (it's 2 in MM's components and 0 in bit components). Using TextFormat.leading proved useless (maybe I'm doing something wrong though), so the solution was to wrap my html in <textformat leading='2'> tags.
Things I like so far: condenseWhite and scrollBarWidth for TextArea, works great. Filesize is much better than MM's components too. I shaved off about 50k on a movie that used three components: button, textArea and comboBox. I'm going to stick with MM's components for large RIAs, especially for the datagrid, but the bit component set looks like a great alternative for lightweight and skinnable apps.


