# Tween ease not defined?

**URL:** <https://forum.kirupa.com/t/tween-ease-not-defined/237134>\
**Category:** Uncategorized\
**Created:** [August 27, 2007, 4:20pm UTC](https://forum.kirupa.com/t/tween-ease-not-defined/237134 "2007-08-27T16:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [August 27, 2007, 4:20pm UTC](https://forum.kirupa.com/t/tween-ease-not-defined/237134/1 "2007-08-27T16:20:13Z")

</div>

i have been trying to get the pre-set tween class in flash to work for the past hour but i seems to never recognize the ease function im trying to use in the tween perams.

```auto
my imports:
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.motion.*;

my tweens:
var newx= randRange(20, 300);
var newy = randRange(20, 300);
var xtween:Tween = new Tween(obj, "x", Linear.easeOut, obj.x, newx, 4, true);
var ytween:Tween = new Tween(obj, "y", Linear.easeOut, obj.x, newy, 4, true);

my error:
ReferenceError: Error #1065: Variable Linear is not defined.
    at game_shapesAS3_fla::MainTimeline/TweenMe()
    at game_shapesAS3_fla::MainTimeline/TweenAll()
    at game_shapesAS3_fla::MainTimeline/setLoc()
    at game_shapesAS3_fla::MainTimeline/InitStage()
    at game_shapesAS3_fla::MainTimeline/InitGame()
    at game_shapesAS3_fla::title_6/game_shapesAS3_fla::frame19()

```

the player will not recognize the Linear (or any other) ease class. am i not importing a needed package, i searched for help on old posts but the only thing on tweens in AS3 say to make your own, is the tween class not use able, or did i miss somthing.  
:huh:
