Проблема в следующем.
Если на кадре пишу применение полученого Motion всё отлично работает, вот код:

Код:
import fl.motion.Animator;
var motion2:Motion2=new Motion2();
this.addChild(motion2);
var motion2_xml:XML = <Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="12" x="12.25" y="6.5" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="s1">
<dimensions>
<geom:Rectangle left="0" top="0" width="24.5" height="13"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="29" x="130"/>
</Motion>;
var motion2_animator:Animator = new Animator(motion2_xml, motion2);
motion2_animator.play();
Если же я делаю Document Class и впишу туда данный код по всем правилам срабатывает как-будто только анимация одного кадра, вот код:

Код:
package {
import flash.display.*;
import flash.events.*;
import fl.motion.Animator;
import fl.motion.Motion;
public class Temp extends MovieClip{
public var motion2_xml:XML;
public var motion2:Motion2;
public function Temp(){
trace("Temp");
motion2_xml=<Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="12" x="12.25" y="6.5" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="s1">
<dimensions>
<geom:Rectangle left="0" top="0" width="24.5" height="13"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="29" x="130"/>
</Motion>;
motion2=new Motion2();
this.addChild(motion2);
motion2.addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(e:MouseEvent):void{
trace("click");
var motion2_animator:Animator = new Animator(this.motion2_xml, this.motion2);
motion2_animator.play();
}
}
}
В чем проблема или что я делаю неверно?