0 Replies Latest reply on Oct 24, 2006 1:30 AM by Thepoor13

    proccess String from loadvariablesNum()

    Thepoor13
      my text:
      &q1=Question1.jpg
      &a1=Answer2.jpg
      ....................................

      &q10=Question10.jpg
      &a10=Answer10.jpg

      an variable is on a line
      so when i load them in to swf,
      loadvariableNum((Question.txt",0)
      for (i=0;i<=9;i++){
      Question_array =eval("q"+i+1)
      Answer_array
      =eval("a"+i+1)
      }

      in my funtion, i use the 2 array to load images to stage
      var i:Number=0;
      var s:String=Question_array
      trace(s)//output is "Question1.jpg "
      trace(s.length)// out put is 14

      because there a visible char in the end of the string, it is "Enter", then now, i want to cut it
      how can i do this
      i've try many way, but it does not work