I have posted a question regarding this before, but I have tried the same solution and it is not resolving my problem. I have some code in a movie that is not working when it is loading into another movie. I tried changing any instances of _root to this, but that is not working. Is it possible that it is a setInterval issue?
Here is the code (original code that is working within the loaded movie)
function loadPhrase4(){
clearInterval(loadPhrase4);
_root.attachMovie("phrase4","phrase",998)
_root.phrase._x = 374.6;
_root.phrase._y = 6.3;
_root.phrase._alpha = 100;
MovieClip.prototype.grow = function(j,k) {
this._xscale += k;
this._yscale = this._xscale;
if (this._xscale>j-1 && this._xscale<j+1) {
delete this.onEnterFrame;
}
};
_root.phrase.onEnterFrame = function() {
this.grow(2000,100);//2000 is size?, 100 is speed of growth? both effect each other
if (this._alpha <= 100)
{
this._alpha -= 6;//speed of alpha fade
}
else{
delete this.onEnterFrame;
}
}
}
loadPhrase4 = setInterval(loadPhrase4, 100);