# Learning to Tween - what am I doing wrong?

**URL:** <https://forum.kirupa.com/t/learning-to-tween-what-am-i-doing-wrong/329863>\
**Category:** flash\
**Created:** [October 26, 2012, 6:16pm UTC](https://forum.kirupa.com/t/learning-to-tween-what-am-i-doing-wrong/329863 "2012-10-26T18:16:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keegan\_Miller](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Keegan\_Miller](https://forum.kirupa.com/u/Keegan_Miller)\
**Post date:** [October 26, 2012, 6:16pm UTC](https://forum.kirupa.com/t/learning-to-tween-what-am-i-doing-wrong/329863/1 "2012-10-26T18:16:54Z")

</div>

Hi. I get this message: Scene 1, Layer ‘Layer 1’, Frame 1, Line 5 1119: Access of possibly undefined property EaseIn through a reference with static type Class.  
Here’s my code:

```auto
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

var myTween:Tween = new Tween(shape, "x", Elastic.EaseIn, 0, stage.stageWidth, 1000, true);

```
