12 Replies Latest reply on Nov 5, 2008 2:21 PM by Newsgroup_User

    dynamic & input text numbers?

    shintashi Level 1
      hi, I'm trying to get a box to move on the x axis a number of pixels equal to the number I enter in the dynamic/input text , after clicking a button/mc; instead of just putting the text from an input into a dynamic output text box. There's tons of uses for this technique if it works so it's really important to get this kind of technique working, even though there's easier ways (like slider bars) to do it.

      I have three objects: a box_mc; an activate_mc; and a dynamic textbox called input_text. I've tried both dynamic and input settings and fiddled with the inputs, but I think I need a root or global variable somewhere. My actionscript right now doesn't work, but it's basic:


      activation_mc.onRelease = function() {

      box_mc._x += input_txt;