Today I’ve been looking at Minimal Comps by Keith Peters. They are a great set of small sized components, ideal for using in pure ActionScript projects.
For example if you need a simple UI to add to a Sprite to test some AS code or a library that you’re developing, Minimal Comps is great for chucking together a quick UI to test against.
One of the really great things about Minimal Comps is how easy it is to add the components to your app, here’s how to add a panel:
var panel:Panel = new Panel(this, 10, 10 );
panel.width = 200;
panel.height = 200;
This creates a simple 200 x 200 panel, here’s how to add a button:
var pushButton:PushButton = new PushButton( panel, 10, 10, "Push the button", onClick );
All this code does is create a button, position it, add a label and register a call back function. All with one line of code, nice.
No comments:
Post a Comment