PDA

View Full Version : Variables??!! Clip name


Geebee
06-17-2005, 02:09 PM
How can I tell Flash that ("Mycopy"+i) is the name of my clip copy. It is Ok when I use setProperty but it doens't work alone. Help please!!

duplicateMovieClip("Myclip","Mycopy"+i,i);
setProperty("Mycopy"+i,_x,"100");
("Mycopy"+i).htmlText= "ertetee";

saumya
06-17-2005, 02:16 PM
use eval function or the new array notation.

duplicateMovieClip("Myclip","Mycopy"+i,i);
setProperty(eval("Mycopy"+i),_x,"100");
eval("Mycopy"+i).htmlText= "ertetee";


hope that helps

billystyx
06-20-2005, 02:27 PM
or

duplicateMovieClip("Myclip","Mycopy"+i,i);
_root["MyCopy"+i]._x=100;
_root["MyCopy"+i].textfieldname.htmlText= "ertetee";


looks like you are trying to assign htmlText to the movieclip, not to the textfield (which I assume is in the movieclip)

billystyx