Flash Help
Flash Help
- Started
- Last post
- 2 Responses
- nuggler0
The variables that are different for each loop should be changed within the function. This works if you have line1_MC on stage:
var curNum = 1;
var lineY = 70;
function addLine(origLine, newLine, lineY) {
origLine.duplicateMovieClip(newL... this.getNextHighestDepth(), {_x:2.1, _y:lineY});
}
for (i=20; i>0; i--) {
curNum++;
addLine(line1_MC, "line"+(curNum)+"_MC", curNum*10);
}
- tommyo0
Man I owe you a beer. Thanks for your help!!
Cheers!!