Sure... the basics:
 
//Create form
var form:Form = new Form();
//Create form item(s)
var fi1:FormItem = new FormItem();
fi1.label = "Name:";
fi1.addChild(new TextInput());
 
//Add form item to form
form.addChild(fi1);
 
//add form itself to container of your choice
canvas1.addChild(f);
 
 
Also, dictionaries can be really useful for keeping track of controls
like this that are generated at runtime...
 
HTH,
Ryan

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Wednesday, October 01, 2008 5:16 PM
To: [email protected]
Subject: [flexcoders] Form defined in Actionscript



Any sample of defining a form in an .as file?

Thanks



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Reply via email to