duplicateMovieClip not playing

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