# Delete this.onEnterFrame

**URL:** <https://forum.kirupa.com/t/delete-this-onenterframe/100532>\
**Category:** Uncategorized\
**Created:** [January 30, 2004, 7:07pm UTC](https://forum.kirupa.com/t/delete-this-onenterframe/100532 "2004-01-30T19:07:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markhegz](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@markhegz](https://forum.kirupa.com/u/markhegz)\
**Post date:** [January 30, 2004, 7:07pm UTC](https://forum.kirupa.com/t/delete-this-onenterframe/100532/1 "2004-01-30T19:07:59Z")

</div>

i am using the following AS to scale a movieclip with ease

```php

onClipEvent(load){ 
targe_width = _width;

}
onClipEvent(enterFrame){ 
	targe_width = 360;
	_width = _width += (targe_width - _width)/3.6;

}

```

should i be using a delete this.OnEnterFrame when the clip reaches the desired width? the problem is that ive noticed a lag in my tweens and i wonder if this is whats causing it.

any ideas?
