I have two frames: in the first one is an mc that is a holder for a dynamic animation. The second frame has other stuff. The problem is that whenever I go from the second frame back to the first frame, the animation gets reset. I want it to start once, and just keep going from there on.
Here's the code within the holder mc:
Code:
for(i=0; i<8; i++) {
mc = this.attachMovie(type, 'MC'+i,
this.getNextHighestDepth());
mc.onEnterFrame = function() {
if( this._x < -175 ) {
this.remove();
numClips--;
}
this._x -= speed;
};
}
this.onEnterFrame = function() {
if( numClips < 8 ) {
mc = this.attachMovie(type, 'MC'+rem,
this.getNextHighestDepth());
mc.onEnterFrame = function() {
if( this._x < -175 ) {
this.remove();
}
this._x -= speed;
};
numClips++;
}
}