# Local variables? 1151: A conflict exists with definition in namespace internal

**URL:** <https://forum.kirupa.com/t/local-variables-1151-a-conflict-exists-with-definition-in-namespace-internal/235346>\
**Category:** Uncategorized\
**Created:** [August 10, 2007, 12:00pm UTC](https://forum.kirupa.com/t/local-variables-1151-a-conflict-exists-with-definition-in-namespace-internal/235346 "2007-08-10T12:00:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darth](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@darth](https://forum.kirupa.com/u/darth)\
**Post date:** [August 10, 2007, 12:00pm UTC](https://forum.kirupa.com/t/local-variables-1151-a-conflict-exists-with-definition-in-namespace-internal/235346/1 "2007-08-10T12:00:05Z")

</div>

I’m porting code from AS2 to AS3  
and as far as I understand theres no fuction only/ local variables?

My code is quite simple, I dont use classes, it’s written in the first frame of the movie.

```auto

import fl.motion.easing.Exponential
b.teasein = function() {
	this.teasing = true;
	var t:Number = 0;
	var frames:Number = 10;
	var sx:Number = stage.stageWidth;
	var ax:Number = -20;
	b.addEventListener(Event.ENTER_FRAME, b.onEnterFrame)
	this.onEnterFrame = function() {
		if (t == frames) {
			b.removeEventListener(Event.ENTER_FRAME, b.onEnterFrame)
			delete this.onEnterFrame;
		} else {
			t++;
			this.xp = Exponential.easeOut(t, sx, ax, frames);
			StageResize();
		}
	};
};

b.teaseout = function() {
	this.teasing = false;
	var t:Number = 0;
	var frames:Number = 10;
	var sx:Number = stage.stageWidth-20;
	var ax:Number = 20;
	b.addEventListener(Event.ENTER_FRAME, b.onEnterFrame)
	this.onEnterFrame = function() {
		if (t == frames) {
			b.removeEventListener(Event.ENTER_FRAME, b.onEnterFrame)
			delete this.onEnterFrame;
		} else {
			t++;
			this.xp = Exponential.easeOut(t, sx, ax, frames);
			StageResize();
		}
	};
};

```

And I get errors for variables t, frames, sx and ax  
like

1151: A conflict exists with definition t in namespace internal.

Do I have to make these variables part of movieclip b?
