RvGaTe
May 17th, 2003, 02:45 PM
allright, this is the problem
i'm buzy with my portfolio, and i made this script for loading dynamic jpg's into an flash movie, with only assigning an number of pictures....
here's the lil script
for (i=1; i<=5; i++) {
_root.createEmptyMovieClip("pic_"+i, i);
with (_root["pic_"+i]) {
file = "images/portfolio_"+i+".jpg";
loadMovie(file);
_x = 55*i
trace(i+"="+file+"_____X="+_x+"_____Y="+_y+"_____L="+i+"_____I="+_name);
}
}
it create's an empty mc (pic_1 to pic_5) and load the assigned jpg into it (images/portfolio_1 to _5), and assigning the possitions next to each other (pictures are 50x50) with 5 space between them...
script looks alright, and the trace output is as i xpected, but it dozn't seem to work correctly, it gives no errors at all, and i can only c picture 1... no more, no less, and _x of the mc isn't as it should be....
what am i doing wrong ?
ps: Flash [MX]
i'm buzy with my portfolio, and i made this script for loading dynamic jpg's into an flash movie, with only assigning an number of pictures....
here's the lil script
for (i=1; i<=5; i++) {
_root.createEmptyMovieClip("pic_"+i, i);
with (_root["pic_"+i]) {
file = "images/portfolio_"+i+".jpg";
loadMovie(file);
_x = 55*i
trace(i+"="+file+"_____X="+_x+"_____Y="+_y+"_____L="+i+"_____I="+_name);
}
}
it create's an empty mc (pic_1 to pic_5) and load the assigned jpg into it (images/portfolio_1 to _5), and assigning the possitions next to each other (pictures are 50x50) with 5 space between them...
script looks alright, and the trace output is as i xpected, but it dozn't seem to work correctly, it gives no errors at all, and i can only c picture 1... no more, no less, and _x of the mc isn't as it should be....
what am i doing wrong ?
ps: Flash [MX]