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;
txt2.text = enumlogo;
logo.attachMovie(current, new1, 1);
I have passed "sdhc,usb" as variable value
txt1.text display usb (enumlogo)
txt2.text display nothing (enumlogo)
What am i doing wrong?
One thing you are doing wrong is declaring the same variable twice. Do not do that, create a differently named variable for the array.
Regardless of that, if I run the code (leaving out the attachMovie and _root.anim lines) I get the correct result, so maybe you need to check your textfields to make sure you have them named as your code shows.
Yes my text box are properly named...i don't get it lol