9 Replies Latest reply on Dec 12, 2008 9:17 AM by Ned Murphy

    Not a Number errors

    CowAttack Level 1
      I'm trying to set up a text box that will display different text every time a button is pushed. It'll display different text on slide 1, slide 2, etc.

      var slideNumber:Number = 1;
      var slide1:String = "Some Text"
      var slide2:String = "More Text"
      etc...
      var narration_str:String;

      my_btn.onRelease = function() {
      narration_str = slide+slideNumber;
      }


      I keep receiving not a number errors, so I'm guessing I have to convert the slideNumber into a string to make it readable. Or if that's not it, any suggestions? Thanks.