How to process data from an input text field:
* Select the "Text tool".
* Then in the properties panel:
o Set the text field type to "input".
* On stage create the text field and position.
* In the properties panel:
o Set the instance name of the text field to "number_input".
o Set the variable name to "input".
* Click on the stage area.
* In the properties panel:
o Set the text field type to "Dynamic"
* On stage create the text field and position.
* In the properties panel:
o Set the instance name of the text field to "number_output".
o Set the variable name to "output".
* In the timeline:
o Select the first frame of the "action" layer.
* Then open the actionscript panel and enter the following script:
enter_btn.onRelease = function(){
output = 5*input;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment