1 Reply Latest reply on Nov 20, 2009 5:20 AM by Ned Murphy

    Making a button generate text

    RayFan9876

      I'm trying to make a "weapons generator" for the game Crysis without the need of coding. to do this I'm using component buttons/textboxes/numericalsteppers. Does anyone know how to make it so when you press a button or change the number in a numericalstepper or enter something in a textbox to make it paste corrisponding text in a textbos to the left?

        • 1. Re: Making a button generate text
          Ned Murphy Adobe Community Professional & MVP

          Not without using coding.  You'll need to look into each component class (in the Flash help documents) that you plan to use to see what options there are for detecting interaction and implement the code needed for those interactions to have that code result in taking some action to paste some text in a textbox.  In general components will either have a click event or a change event that you need to listen for.  When such an event takes place, your event handling code will be where you include code to write to that textbox.

           

          If you look up the events for the objects you plan to use, there should be example code in the documentation that will show you how to implement them.