:: abox라는 심볼 인스턴스에 대한 애니메이션
import fl.motion.Animator;
import fl.motion.MotionEvent;
var abox_xml:XML = <Motion duration="10" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="12" x="0" y="0" scaleX="1" scaleY="1" rotation="0" elementType="display object" symbolName="Symbol 1">
<dimensions>
<geom:Rectangle left="0" top="0" width="86.95" height="86.95"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" rotateDirection="cw" rotateTimes="1">
<tweens>
<SimpleEase ease="0.8"/>
</tweens>
</Keyframe>
<Keyframe index="40" x="198" y="163">
<tweens>
<SimpleEase ease="0.8" />
</tweens>
</Keyframe >
<Keyframe index="60" x="198" y="123"/>
</Motion>;
var abox_animator:Animator = new Animator(abox_xml, abox);
abox_animator.play();
abox_animator.addEventListener(MotionEvent.MOTION_END,afterMotion);
function afterMotion(e:MotionEvent) {
trace("animation complete!");
}
참고 ::
http://livedocs.adobe.com/flash/9.0_kr/ActionScriptLangRefV3/motionXSD.html





