3 Replies Latest reply on Jul 14, 2013 8:28 AM by kglad

    [object object] dynamic text error :(

    _ItzKR15_

      Hey, I was just in the middle of my programming and I wrote this onto some dynamic text:

       

      var wood:Number;

      wood = 0;

      var water:Number;

      water = 0;

       

      var s_water:String;

      s_water = toString(water);

       

      var s_wood:String;

      s_wood = toString(wood);

       

      statsInstance.text = "wood: " + s_wood + " water: " + s_water;

       

      And then when I run it, the text shows:

      wood: [object object] water: [object object]

       

       

      Please help!

       

       

      Thanks.