I am newbie to as 3 and flex. I want to add a text area on the click or a button .ie lets say if a person has multiple address and they want to ad more address. When the click add address a new text are should appear.
Hear is the code that I have tried (and this could be very wrong)
private function createTextField():void{
var theTextField:TextField = new TextField();
theTextField.type = TextFieldType.INPUT;
theTextField.border = true;
theTextField.x = 10;
theTextField.y = 10;
theTextField.multiline = true;
theTextField.wordWrap = true;
addChild(theTextField);
}
<mx:FormItem>
<mx:Button label=“Add Text Area” click=“createTextField();”/>
</mx:FormItem>
thanks in advance to anyone who can help:).