BIT-101 [2003-2017]

MinimalComps v0.91


Get the new version here: MinimalComps v0.91

A few additions and changes. Now you see the VUISlider and HUISlider, which contain a label, slider and value label with settable precision, and a basic Text component. Many of the components take another optional parameter in the constructor for the initial value or label of the component, so you can now set up a button even easier:

[as]new PushButton(this, 10, 10, “Click Me”, onClick);[/as]

I know this is an API change that will break earlier code, which is a big no-no, but screw it, I don’t think that many people are using these things yet. 🙂

I messed around a while trying to get the SWC to work with CS3, without much luck. I could create a component SWC in CS3 and get it to show up in the components panel. And by dragging that into the library, the component classes were available, but still no font. Best bet is to install the PF Ronda Seven font on your system, then add a font symbol to your FLA library and export it first frame, then add the class path to your FLA. That works for sure.

Also, I moved from a direct call to draw() to a invalidate-and-wait-a-frame method. This was part of my trying to get layout containers working. If you see any glitches in rendering, let me know.

Someone asked me in the comments of the earlier post, why do I bother doing something like this, when there are “tons” of other solutions out there I could contribute to. Well first of all, I’d like to see the “tons” of other non-Flex, AS3 UI components. Other than AsWing (which is the only one the commenter mentioned by name) and the CS3 components, I don’t know of any other packages that fit that bill.

Also, I’m going in a very different direction with these components, as I think is obvious. These are not the kind of things you’d probably want to use on a large, enterprise level RIA. But I think they are awesome for quick apps, experiments, proof of concept pieces, etc. From the amount of positive responses I’ve gotten on these, they definitely seem to fill a niche. In fact, it’s the positive responses that got me to do more work on them, so if you want more, keep it up. 😉

I’ll probably get the source up on Google Code over the weekend, as I’m starting to get requests for that.

« Previous Post
Next Post »