# Import not working

**URL:** <https://forum.kirupa.com/t/import-not-working/315730>\
**Category:** flash\
**Created:** [November 3, 2010, 2:15am UTC](https://forum.kirupa.com/t/import-not-working/315730 "2010-11-03T02:15:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerdang](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zerdang](https://forum.kirupa.com/u/zerdang)\
**Post date:** [November 3, 2010, 2:15am UTC](https://forum.kirupa.com/t/import-not-working/315730/1 "2010-11-03T02:15:54Z")

</div>

I import a class(this is in a .as file for flash CS5.)  
I define it and clearly I later instantiate it

[CENTER]

```auto

import com.greensock.TweenMax;

public class Turret extends MovieClip
	{
		.....
                public var TweenMax:TweenMax;
        }

private function loop(e:Event)
		{
			.....

                         if (x > stage.width - xBound)
			{
				removeEventListener(Event.ENTER_FRAME, loop);
				TweenMax.to(this, tweenTime, {x: 700 - 17.5, scaleX:.2, scaleY:.2, rotation:755});
			}
			else if (x < xBound)
			{
				removeEventListener(Event.ENTER_FRAME, loop);
				TweenMax.to(this, tweenTime, {x: 17.5, scaleX:.2, scaleY:.2, rotation:-755});
			}

			if (y > stage.height - yBound)
			{
				removeEventListener(Event.ENTER_FRAME, loop);
				TweenMax.to(this, tweenTime, {y: 500 - 5, scaleX:.2, scaleY:.2, rotation:-755});
			}
			else if (y < yBound)
			{
				removeEventListener(Event.ENTER_FRAME, loop);
				TweenMax.to(this, tweenTime, {y: 5, scaleX:.2, scaleY:.2, rotation:-755});
			}
     }

```

[/CENTER]  
does anyone have any suggestions? the error has been killing my work productivity for a few hours so I’d like to get this done soon

> D:\Documents\Documents(…)\AdobeScripts\com\N#\Turret.as, Line 36 1046: Type was not found or was not a compile-time constant: TweenMax.
