[osflash] ASForms

andrew edwards andrew at hugeobject.com
Sun Apr 23 00:40:59 EDT 2006


Hello all,

ASForms is a very lightweight Actionscript component set (7kb). They are 
basically very similar to forms in HTML, but done in flash. This release 
is fairly stable yet lacks accessibility and the focus management needs 
some serious tweaking. The code examples give a basic indication of how 
it all works and I’ll make an effort to fill in some of the commenting 
holes over the next couple of weeks.

There is a very simple Skinning and Event Manager system build in as well.

Included objects:
Radio buttons, Checkboxes, Drop downs, Text input, Passwords, Submit buttons

The code is released under the GPL and was developed with MTASC 
<http://www.mtasc.org> strict in a AMES <http://osflash.org/AMES/> dev 
environment.

Example code:

|// create some radio buttons in the movieclip 'base'
var radio:Radio = new Radio(base, "radioBands", depth++);
radio.setPos(10,80); // set the x and y
radio.addFormElement("a1", "Interpol");  // add a radio button 'Interpol'
radio.addFormElement("a2", "Sebadoh"); // add a radio button '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'


To download and read more go here: http://ae.hugeobject.com/code/asforms/

Cheers
Andrew
|




More information about the osflash mailing list