# Duplicating movies & set interval

**URL:** https://forum.kirupa.com/t/duplicating-movies-set-interval/131440
**Category:** Uncategorized
**Created:** [December 15, 2004, 7:33pm UTC](https://forum.kirupa.com/t/duplicating-movies-set-interval/131440 "2004-12-15T19:33:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bmoeb](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Bmoeb](https://forum.kirupa.com/u/Bmoeb)
#### Post date: [December 15, 2004, 7:33pm UTC](https://forum.kirupa.com/t/duplicating-movies-set-interval/131440/1 "2004-12-15T19:33:23Z")

</div>

I’m not sure if setinterval is the way to go but it is all I know that could possibly fix my problem. I just want to duplicate a movie then not have it play right away. How would you make the duplicated movies delay before being played. I don’t want them all to play at the same time. Here is the code I have. One of these days I might figure all this programming stuff out. Ok maybe not…but I can hope!

portfolioInfo = new XML();  
portfolioInfo.ignoreWhite = true;  
portfolioInfo.onLoad = function()  
{  
portfolioTag = this.firstChild;  
count = portfolioTag.childNodes.length;  
for (child = 0; child \< count; child++)  
{  
duplicateMovieClip (\_root.PortfolioMovie, “Portfolio” + child, child);  
currentMovie = \_root[“Portfolio”+child];  
currentMovie.\_x = \_root.PortfolioMovie.\_x;  
currentMovie.\_y = ((currentMovie.\_height+10)\*child)+10;  
currentMovie.COUNT = child;  
currentSite = portfolioTag.childNodes[child];  
currentMovie.THUMB = currentSite.attributes.THUMB;  
currentMovie.TITLE.NAME = currentSite.attributes.NAME;  
currentMovie.IMAGE.loadMovie(currentSite.attributes.IMAGE);  
currentMovie.DESCRIPTION = currentSite.attributes.DESCRIPTION;  
currentMovie.LINK = currentSite.attributes.LINK;  
currentMovie.onRelease = function()  
{trace(this.LINK);}  
}  
}  
portfolioInfo.load(“portfolio.xml”);
