So I have moved into learning AS3 and for some reason I can’t seem to get tweening figured out.
I set up a pretty basic animation on my timeline and then did the “copy for Actionscript 3.0” thing, removed the animation from my timeline and then set up my Document class as follows:
package
{
import flash.display.*;
import flash.events.*;
public class MyApp2 extends MovieClip
{
private static const VERSION:String = "1.0.0.0";
public function MyApp2()
{
import fl.motion.Animator;
var guy_mc_xml:XML = <Motion duration="1" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="12" x="107.05" y="272.65" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" instanceName="guy_mc" symbolName="guy">
<dimensions>
<geom:Rectangle left="-97.95" top="-126" width="235.85" height="229.65"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.4153063387746449" y="0.5486610058785107"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" rotateDirection="cw" rotateTimes="3" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
</Motion>;
var guy_mc_animator:Animator = new Animator(guy_mc_xml, guy_mc);
guy_mc_animator.play();
}
}
}
I can’t get the thing to move though and it’s absolutely killing me. I do a lot of tweening (mainly with alphas) in my code and I just want to figure this stuff out so that I may continue on in my learning.
Thanks,
–LD