3 Replies Latest reply on May 5, 2010 3:41 PM by kglad

    AS2 Simple getURL Question

    iowaGuy Level 1

      Hello All,


      I have what I think is an easy question but I am having problems with it... Using AS2 / CS3, I am calling a javascript function from Flash, but i would like the value to be a variable and I cant figure out how to do it. the started code is below and I need direction on how to make "myVar" actually a variable.


      var myVar = newValue_txt.text;


      btnOne.onRelease = function() {
           getURL("javascript:testFunction('myVar') ");





      this is a stripped down version of what i am trying to do, but i think it gets the main point across.


      thanks in advance!