# Help me with daft circles!

**URL:** <https://forum.kirupa.com/t/help-me-with-daft-circles/180528>\
**Category:** flash\
**Created:** [March 1, 2006, 10:26am UTC](https://forum.kirupa.com/t/help-me-with-daft-circles/180528 "2006-03-01T10:26:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrissyb](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@chrissyb](https://forum.kirupa.com/u/chrissyb)\
**Post date:** [March 1, 2006, 10:26am UTC](https://forum.kirupa.com/t/help-me-with-daft-circles/180528/1 "2006-03-01T10:26:09Z")

</div>

Hello I can’t get the following to work, it very simply sends some moving circles across the stage - but the problem is it really slows down the FPS and starts to corrupt the screen/browser. The function is certainly the culprit.

I came up with this code to try and remove onEnterFrame, but my issue is calling onEnterframe when the movie clip reaches a certain position on the stage, which is not working. this is wrong:

```auto
if (this.circle2_mc._x = -250)

```

I want to call the function below with an onRelease then when it reaches a certain position unLoadMovie and/or delete OnEnterFrame.

Would it be better to try and acheive this using a time/duration function?

Heres my code:

```auto
function movecirc ()

{attachMovie ("mccircle", "circle2_mc", 1)

_root.sq_mc.circle2_mc.onEnterFrame = function ()
{this._x += -15;}
if (this.circle2_mc._x = -250)
{this.circle2_mc.unloadMovie();
delete this.onEnterFrame ;
trace("deleted");
}
}

```

Thanks ery much in advance!
