1 Reply Latest reply on Dec 11, 2011 4:39 AM by Ned Murphy

    Get value of a variable

    anjemalo Level 1


      In other language I can use this kind of sentences:


      function DoSomething (n:uint):void



          var Myvalue:Object;





      How can achieve this? because the above code does not work.

      Many thanks

        • 1. Re: Get value of a variable
          Ned Murphy Adobe Community Professional & MVP

          You have an unmatched closing parenthesis so that will not work, but to use a String to target an object you can use the bracket notation...




          I show it without the variable since that is an unnecessary step, though you can use it if you prefer.