i have a program in flex wherein i check if a particular field is validated then the submit button is enabled. I am trying something like this:
public function init():void
{
submit.addEventListener(Event.CHANGE,enableSubmit);
}
public function enableSubmit(event:TextInput):void
{
//some code to enable the button
}
I can call init in creation complete to add event listener to submit! is this the correct way to do it ? Please help!