Newbie help -- Strange loading

Hello,
There’s this strange thing happening: when I load a movie that plays perfectly on its own in an empty movie clip, it begins to lag like hell. All I do is

this.loadMovie("blob2Bit06.swf");

and the movie that I load is all code. As anyone had the same problem?

pom :slight_smile:

Maybe the frame rate for the 2 movies is different, causing one to slow down when it needs to be faster…

FW

Yes, I forgot to say, it’s not a fps problem.
Thanks anyway :slight_smile:

Flash always had the problem with objects… I’ve noticed this since F5. When you wanted to make something invisable, you would turn alpha to 0 but still have the object showing very faintly.

I think it has to do with the method of playing it inside another MC. So, thats my two cents…

All code + other movie -> CPU Intensive ?

Copy and paste this:

function b(){
	this.x = _xmouse+this.cx;
	this.y = _ymouse+this.cy;
	if (!(this.l++ % 5)) {
		this.bx = (Math.random() - .5) * .35;
		this.by = (Math.random() - .5) * .35;
	}
	this.vx += .002 * (this.x - this._x) + this.bx;
	this.vy += .002 * (this.y - this._y) + this.by;
	this._x += (this.vx*=.96);
	this._y += (this.vy*=.96);
}
createEmptyMovieClip("m",-10);
D = [];
for (p=0;p < 10;p++)
	D.push(m.duplicateMovieClip("m"+p,p,{cx : 75*Math.cos(p*Math.PI/5),cy : 75*Math.sin(p*Math.PI/5),onEnterFrame : b}));
onEnterFrame=function(){
	a = [];
	for (j=0;j < 10;j++)
		a.push({x : (D[j]._x+D[(j+1)%10]._x)/2 , y : (D[j]._y+D[(j+1)%10]._y)/2});
	clear();
	beginFill(0, 50);
	moveTo(a[0].x, a[0].y);
	for (j=1;j<=10;j++){
		curveTo(D[j%10]._x,D[j%10]._y,a[j%10].x,a[j%10].y);
	}
}

Compile it as ilyas.swf then open a new movie, and input

this.loadMovie ( "ilyas.swf" ) ;

Is it as fast as the first one?