# duplicateMovieClip not playing

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-not-playing/176939>\
**Category:** flash\
**Created:** [January 28, 2006, 5:36am UTC](https://forum.kirupa.com/t/duplicatemovieclip-not-playing/176939 "2006-01-28T05:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkfx](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@darkfx](https://forum.kirupa.com/u/darkfx)\
**Post date:** [January 28, 2006, 5:36am UTC](https://forum.kirupa.com/t/duplicatemovieclip-not-playing/176939/1 "2006-01-28T05:36:55Z")

</div>

Hi Guys,

I’ve been working with flash for a few years now, and have a few major projects under my belt, but this is an issue that randomly crops up every now and then: duplicateMovieClip simply not playing.

Check out the code and see if you can determine the bug:

on (rollOver) {  
duplicateMovieClip(\_root.puma, “puma”+pumaC, \_root.getNextHighestDepth());  
pMC = \_root[“puma”+pumaC];  
pMC.onLoad = function() {  
trace("loaded: “+this.\_name);  
this.\_x = \_root.puma.\_x;  
this.\_y = \_root.puma.\_y;  
this.gotoAndPlay(2);  
};  
pMC.onEnterFrame = function() {  
trace(this.\_name+”: "+this.\_currentframe);  
if (this.\_currentframe == this.\_totalframes) {  
this.unloadMovie();  
trace(“unloaded”);  
}  
};  
pumaC++;  
}

Seriously, this is bugging me to bits, any help would be astronomical, as MX2005 seems to love doing this to me…

Cheers,

Lars
