# Question about onEnterFrame

**URL:** https://forum.kirupa.com/t/question-about-onenterframe/199647
**Category:** flash
**Created:** [September 4, 2006, 11:08pm UTC](https://forum.kirupa.com/t/question-about-onenterframe/199647 "2006-09-04T23:08:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Derlei](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@Derlei](https://forum.kirupa.com/u/Derlei)
#### Post date: [September 4, 2006, 11:08pm UTC](https://forum.kirupa.com/t/question-about-onenterframe/199647/1 "2006-09-04T23:08:41Z")

</div>

Maybe this is a stupid newbie question but if someone could explain me

what is the difference on using in actionscript

```auto
mc1.onRollOver = function() {
	onEnterFrame = function () {
		mc1._alpha < 100 ? mc1._alpha += 5 : delete onEnterFrame;
	};
};

mc1.onEnterFrame = function () {
	this.onRollOver = function() {
		mc1._alpha < 100 ? mc1._alpha += 5 : delete onEnterFrame;
	}
}

```

If someone could explaine me in actionscript terms. Thanks in advanced :red:
