Opens a dialog with a custom component as input controller.
Example using a FvSliderInput component.
Use FvInputComponentDialog singleton design.
var input : FvSliderInput = new FvSliderInput( true ); // rounded bounded range enabled. input.setMinimum( 1900 ); input.setMaximum( 2100 ); input.setValue( ( new Date() ).getFullYear() ); FvInputComponentDialog.show( input, "Choose your year", this, _onInputResult );
or with classic instanciation :
var input : FvSliderInput = new FvSliderInput( true ); // rounded bounded range enabled. input.setMinimum( 1900 ); input.setMaximum( 2100 ); input.setValue( ( new Date() ).getFullYear() ); var dialog : FvInputComponentDialog = new FvInputComponentDialog( input ); dialog.open( "Choose your year", this, _onInputResult );
static public onInputResultEVENT:EventTypestatic public buttonWidth:Numberstatic public function show(input:FvInputComponent, label:String, listener, f:Function):FvInputComponentDialog
Uses always same FvInputComponentDialog instance swapping input component
with passed-in input one.
input | FvInputComponent component |
label | Text label do display |
listener | Listener or callback context |
public function open(label:String, listener, f:Function):VoidOpens the input dialog.
Various way to open an input dialog :
label | Message to indicate which type of information we want |
listener | Listener object |
f | ( optional ) listener callback to activate on result. If omitted, |