Animation between transitions in main movie

I’ve searched the forums, but can’t find anything similar.

I have an animation in my main movie that I want to run in between externally loaded MCs, but I’m having trouble…

My buttons are not on the _root, they are in the 10th frame of a movie beneath the root (along with the AS for them because I have other animations that need to load first).

Here’s the code I have on one of the buttons:

linkBio.onRelease = function() {
	if (_root.currMovie == undefined) {
		_root.currMovie = "bio";
_parent.myDragon.easeX(-100);
		_parent.pageContainer.loadMovie("bio.swf");
	} else if (_root.currMovie != "bio") {
		if (_parent.pageContainer._currentframe >= pageContainer.midframe) {
			_root.currMovie = "bio";
			_parent.pageContainer.play();
		}
	}
}

myDragon is located on the _root (above this mc) and it’s not working at all. Works if I call it from the _root however. The problem(I think) is that the movie is loading and disrupting that call to play the myDragon animation.

I can’t think of any way to use setInterval with this because the myDragon animation is using a prototype function and it’s not responding to the timer. In fact, none of my actionscripted movements respond to it :slight_smile: - I’ve attached that code below, as well…

AS on _root timeline for the myDragon MC:

MovieClip.prototype.easeX = function(to){
this.onEnterFrame = function(){
this._x = to-(to-this._x)/1.1;
if(this._x > to-1 && this._x < to+1){
this._x = to;
delete this.onEnterFrame
}
}
}
myDragon.easeX(-100);

Any suggestions on how to get the dragonfly (myDragon) to animate before the external movie is fully loaded? I was thinking of making the myDragon clip a Global, but I don’t know how (if it’s necessary). I’m trying to keep the filesize down by keeping the dragonfly in the main movie - it’s supposed to fly across the screen, while the external movie is loading in (text appears to float into place behind it)…

thanx!