ASForms

April 5th, 2006 by ae

ASFormsASForms FAQ | Download ASForms | How to use ASForms

 

 

 

 

ASForms are lightweight and snappy Flash forms (components). They are designed for people who don’t need a full component framework, but rather need quick and easy flash forms they can drop into an application without too much trouble or size increase. Forms included so far are: Radio buttons, checkboxes, text input, password input, hidden fields, drop down boxes and simple text boxes

Although a skin system has been implemented, it is fairly primitive at this stage – changing colours or fonts is easy but anything else is difficult.

Example of ASForms (7kb)
[kml_flashembed movie="/projects/ASForms/SmallDemo.swf" height="200" width="200" /]

 

Adding ASForms in is dead simple:


import com.hugeobject.asforms.*; // import asforms
// create some radio buttons in the movieclip 'base'
var radio:Radio = new Radio(base, "rBands", depth++);
radio.setPos(10,80); // set the x and y
radio.addFormElement("a1", "Interpol");
radio.addFormElement("a2", "Sebadoh");
radio.setSelected("a1"); // sets 'Interpol' as selected
radio.render(); // draws the radio buttons

// get the results from the radio
radio.getSelected()[0]; // returns 'a1'

The current version is stable enough to be used in production however the focus management isn’t great at the moment. Over the coming weeks I hope to get the focus management a-OK and let you choose which Skin file to use on a form by form basis.

If you are using ASForms or have any questions or find a bug, let me know via email. If you would like to be notified when I update ASForms please send an email here.

No Comments » Comments to this post

Leave a Reply

ASForms

April 5th, 2006 by ae

No Comments » Comments to this post

Leave a Reply