# Tween Class

**URL:** <https://forum.kirupa.com/t/tween-class/172622>\
**Category:** Uncategorized\
**Created:** [December 16, 2005, 5:52am UTC](https://forum.kirupa.com/t/tween-class/172622 "2005-12-16T05:52:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurve](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Kurve](https://forum.kirupa.com/u/Kurve)\
**Post date:** [December 16, 2005, 5:52am UTC](https://forum.kirupa.com/t/tween-class/172622/1 "2005-12-16T05:52:44Z")

</div>

hey guys  
got a question… im getting into using the tween classes in mx 2004, and im havin a bit of a problem. im not sure why this code isn’t working

import mx.transitions.Tween;  
import mx.transitions.easing.\*;

box.onEnterFrame = function(){  
var myTween:Tween = new Tween(box,"\_xscale",Elastic.easeOut,100,400,1,true);  
}

what im trying to do is to have the box scale to a certain size once the player enters that frame… am i missing something, because i thought i was doing it correctly. this action is on a frame and not on the movieclip itself. any help would be great. thanks in advance.

Kurve
