пишу класс:

Код AS3:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.display.DisplayObject;
import fl.motion.AnimatorFactory;
import fl.motion.MotionBase;
import fl.motion.Motion;
import flash.filters.*;
import flash.geom.Point;
public class IList extends MovieClip
{
private var go:Boolean = false;
var ent1 = new MovieClip;
public function IList()
{
InitAnimation();
addEventListener(MouseEvent.MOUSE_OVER,_onMouseOver);
addEventListener(MouseEvent.MOUSE_OUT,_onMouseOut);
addEventListener(Event.ENTER_FRAME,_onEnterFrame);
}
function _onMouseOver(event:MouseEvent):void
{
if(!go)
{
parent.setChildIndex(this,parent.numChildren-1);
go = true;
}
}
private function _onMouseOut(event:MouseEvent):void
{
go = false;
}
private function _onEnterFrame(e:Event):void
{
if(go)
nextFrame();
else
prevFrame();
}
function InitAnimation():void
{
ent1.graphics.lineStyle(1,0x000000);
ent1.graphics.beginFill(0xCCFF00 );
ent1.graphics.drawRect (0,0,150,50);
addChild(ent1);
ent1.name = "ent1";
var __motion_Flag1:MotionBase;
if(__motion_Flag1 == null)
{
__motion_Flag1 = new Motion();
__motion_Flag1.duration = 9;
__motion_Flag1.addPropertyArray("y", [0,2,4,6,8,10,12,14,16]);
var __animFactory_Flag1:AnimatorFactory = new AnimatorFactory(__motion_Flag1);
__animFactory_Flag1.transformationPoint = new Point(0.500000, 0.500000);
__animFactory_Flag1.addTarget(ent1, 0);
}
}
}
}
ent1 рисуется, но анимация почему - то не срабатывает, подскажите пожалуйста в чем я не прав?