Thanks Alex,
many thanks for your great work!!!
Regards
Duccio Del Ministro
----- Original Message -----
Sent: Friday, April 22, 2005 9:34
PM
Subject: RE: [flexcoders]
AnimationPackage
Yes. Currently, it's indended to use AnimationPackage only
in ActionScript 2.0 classes or the MXML Script tag. Here's a quick example for
a Script tag.
<mx:Script>
<![CDATA[
import
de.alex_uhlmann.animationpackage.*;
import
de.alex_uhlmann.animationpackage.animation.*;
import
de.alex_uhlmann.animationpackage.drawing.*;
import
de.alex_uhlmann.animationpackage.utility.*;
import
com.robertpenner.easing.*;
function runAnimation()
{
APCore.initialize();
var myStar:Star = new
Star(275,200,100,25,6);
myStar.lineStyle(2,0xff0000,100);
myStar.fillStyle(0xff0000,100);
myStar.draw();
var mc:MovieClip =
myStar.movieclip;
var myMoveOnQuadCurve:MoveOnQuadCurve = new
MoveOnQuadCurve(mc,100,100,300,300,500,100);
var myScale:Scale = new
Scale(mc,25,25);
var myRotation:Rotation = new
Rotation(mc,360);
var myColorTransform:ColorTransform = new
ColorTransform(mc,0xff0000,50);
var myAnimation:Animation = new
Animation();
myAnimation.addChild(myMoveOnQuadCurve);
myAnimation.addChild(myColorTransform);
myAnimation.addChild(myScale,0,1000);
myAnimation.addChild(myRotation,1000,1500);
myAnimation.animationStyle(2000,Circ.easeInOut,"onCallback");
myAnimation.animate(0,100);
}
]]>
</mx:Script>
i.e. a creationComplete event handler could call the
method runAnimation. Basically all the supplied examples of the HTML
documentation stay the same.
Best, Alex
-----Original
Message----- From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Duccio Sent: 22 April 2005
18:36 To: flexcoders@yahoogroups.com Subject: [flexcoders]
AnimationPackage
Has anyone tested AnimationPackage(http://www.alex-uhlmann.de/flash/animationpackage/index.htm)
or similar in Flex? Any example? Best regards Duccio Del
Ministro
Yahoo! Groups Links
To visit your group
on the web, go to: http://groups.yahoo.com/group/flexcoders/
To
unsubscribe from this group, send an email
to: [EMAIL PROTECTED]
Your use of Yahoo! Groups
is subject to the Yahoo! Terms of Service.
No virus found in this incoming message. Checked by AVG
Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.0 - Release Date:
20/04/2005
Yahoo! Groups Links
|