# Newbie help -- Strange loading

**URL:** <https://forum.kirupa.com/t/newbie-help-strange-loading/28017>\
**Category:** flash\
**Created:** [August 8, 2003, 10:21pm UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017 "2003-08-08T22:21:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pom](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pom](https://forum.kirupa.com/u/pom)\
**Post date:** [August 8, 2003, 10:21pm UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017/1 "2003-08-08T22:21:07Z")

</div>

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

```auto
this.loadMovie("blob2Bit06.swf");

```

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

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 10:44pm UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017/2 "2003-08-08T22:44:34Z")

</div>

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

FW

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 11:20pm UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017/3 "2003-08-08T23:20:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 11:48pm UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017/4 "2003-08-08T23:48:13Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2003, 4:46am UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017/5 "2003-08-09T04:46:36Z")

</div>

All code + other movie -\> CPU Intensive ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2003, 1:13pm UTC](https://forum.kirupa.com/t/newbie-help-strange-loading/28017/6 "2003-08-09T13:13:33Z")

</div>

Copy and paste this:

```auto
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

```auto
this.loadMovie ( "ilyas.swf" ) ;

```

Is it as fast as the first one?
