• home
  • forum
  • my
  • kt
  • download
  • Processing Input From A Text Field

    Author: 2008-09-26 09:16:05 From:

    How to process data from an input text field:

    • Select the "Text tool".
    • Then in the properties panel:
      • Set the text field type to "input".
    • On stage create the text field and position.
    • In the properties panel:
      • Set the instance name of the text field to "number_input".
      • Set the variable name to "input".
    • Click on the stage area.
    • In the properties panel:
      • Set the text field type to "Dynamic"
    • On stage create the text field and position.
    • In the properties panel:
      • Set the instance name of the text field to "number_output".
      • Set the variable name to "output".
    • In the timeline:
      • 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;
    }

    • In the main menu go to Control > Test Movie.

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      3D (20)
      Math Physics (14)
      3rd Party (5)
      Navigation (60)
      Actionscripting (26)
      Optimization (16)
      Animation (32)
      Projector (9)
      Audio (46)
      Special Effects (112)
      Backend (25)
      Text Effects (65)
      Drawing (18)
      Tips and Techniques (41)
      Dynamic Content (25)
      Tricks (6)
      Games (66)
      Utilities (19)
      Getting Started (71)
      Video (10)
      Interactivity (34)
      Web Design (29)

    New

    Hot