Form manager
Compatible: AS3, flash 8 or greaterAn easy way to build a form on flash without any actionscript knowledge.
It is possible to define two different types of structure (labels on slide or on top of input area), and to personalize it with your own look and feel.
You can build it adding specific fields for password, number, e-mail or text area; each of them could be mandatory or not.
The validation process is able to recognize the correct format for email and number fields.
To manage the component you can use an xml file.
The xml syntax is easy and even a beginner user can create the file.
Download it now! you will find also some xml examples.
This component is still in developing, if needed we will solve any bug and will implement any request.
xml Format
It looks complicated, but the pink text is just a comment!
<!- The "general" tag set all the generic params --> <general> <!- labelPosition possible values: "inline" or "incolumn verticalDistance allow you to define the distance between each items --> <structure labelPosition="incolumn" verticalDistance="4" /> <!- this is the url call when you click the submit botton --> <sendPage url="http://localhost/sendData.asp"/> <!- delete the tag "font" if you prefer set the font format directly on the form components (editing directly the text field) --> <font face="Arial, Helvetica, sans-serif" size="10" color="0x000000"/> <!- these tags set the default sizes for any kind of item used --> <label align="right" width="70"/> <TextInput width="180" /> <TextArea width="180"/> <Button width="130" height="20"/>
</general> <!- In the "elements" you can add as many "element" as you prefer each "element" could be of type "TextInput", "TextArea" or "Button", each of them could have the attributes "label" "mandatory" --> <elements> <!- the "element" with type = "TextInput" could have also the attribute "use", if it's equal to "number", the text field will accepts only numbers; if it 's equal to "email" the component will check for a correct email sintax on plus you can add a "param" tag, to define some more options. --> <element type="TextInput" label="Name:" mandatory="true"/> <element type="TextInput" label="Pwd:" mandatory="true" use="password"/>
<element type="TextInput" label="Age:" mandatory="false" use="number" width="30"> <param maxChars="2" lenght="20" defaultValue="20"/> </element> <element type="TextArea" mandatory="false" label="Message:"/>
<element type="Button" label="Submit:" action="Submit" width="65" xPos="0" yPos="20" /> </elements> <!- Theese tags are used for the feed back message. --> <messages> <message name="MandatoryField"> <txt><![CDATA[Please, fill all he mandatory fields.]]></txt> </message> <message name="SuccessSend"> <txt><![CDATA[Thanks!]]></txt> </message> <message name="ErrorSend"> <txt><![CDATA[Unable to send the data.]]></txt> </message> </messages>



