2 Replies Latest reply on Jul 23, 2012 8:40 PM by diluant

    Problem with flash array from FlashVars

    diluant

      var enumlogo : String = logos;

      var enumlogo : Array = enumlogo.split(',');

      var nblogos : Number = enumlogo.length;

      for (var i :Number = 0; i < nblogos; i++)

      {

          var current : String = enumlogo[i];

          txt1.text = enumlogo[0];

          txt2.text = enumlogo[1];

          logo.attachMovie(current, new1, 1);

          _root.anim.gotoAndPlay(1)

      }

       

      I have passed "sdhc,usb" as variable value

       

      txt1.text display usb (enumlogo[0])

      txt2.text display nothing (enumlogo[1])

       

      What am i doing wrong?