Im trying to repeat a movieclip across y axis… soo it takes Stage.height and divdes the height of movieclip and finds out how many times to duplicate movieclip soo it covers entier swf. Stage… here is my code … but its not working please. help :frowning:

here instance [COLOR=Red]back[/COLOR] is the movieclip to be repeated along y axis… and [COLOR=DarkRed]back_repeat[/COLOR] is the variable that contains value of how many times the [COLOR=Red]back[/COLOR] movieclip should be repeated

back_repeat = Stage.height/back._height;
back_repeat = Math.round(back_repeat);
while(i<back_repeat) {
	_root["back"+i]._y = _root["back"+i]._y + back._height;