Input dialog implementation.
2 ways to use input dialog
var d : FvInputDialog = new FvInputDialog();
d.open( "What is your name ?", this );
FvInputDialog.getInstance().open( "What is your name ?", this );
Take a look at open() unique method to show how to use this component.
Button labels are connected to the FvAlertResources localisation resources.
static public onInputResultEVENT:EventTypestatic public buttonWidth:Numberstatic public invalidColor:ASColorstatic public function getInstance():FvInputDialogReturns FvInputDialog instance.
Always returns the same instance.
Design Pattern Singleton.
FvInputDialog instance
public function open(label:String, listener, f:Function):VoidOpens the input dialog.
Various way to open an input dialog :
If f callback is omitted, listener must have a onInputResultEVENT
event handler.
label | Message to indicate which type of information we wanted |
listener | Listener object |
f | ( optional ) listener callback to activate on result. |