Fuse, I love you
Ok, so I am going on record by saying that FuseKit is by far the best animation class out there. At first, I was stuggling a bit with the documentation, and how to best approach using it; flying back from FITC I spent some in depth time reading.
Simply put, it's amazing!
Here is a little breakdown of some things you can do with it. First a litle info on part of the class, and what you can pass to it: (Keep in mind, this is a VERY small part of what can be done)
public static function doTween(
targets: Object,
props: Object,
endvals: Object,
seconds: Number,
ease: Object,
delay: Number,
callback: Object): String
So, an example of that would be:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse,FuseFMP,
FuseItem);
ZigoEngine.doTween({ target:box_mc, _brightOffset:100, seconds:1, ease:"easeOutQuad"});
This would fade a movieClip with a burn type effect, taking 1 second, passing in an ease of easeOutQuad.
Another really nice feature is that you can set up a sequence of events to be fired one after another. An example of this would be:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse,FuseFMP);
var easeOutElastic:String = "easeOutElastic";
var easeOutBounce:String = "easeOutBounce";
//Let's write a fuse:
var animateBall = Fuse.open();
//
box1_mc.tween("_y", "400", 1.5, easeOutBounce, 5);
//
box1_mc.alphaTo(50, 1);
//
box1_mc.scaleTo(600, 2, easeOutElastic);
//
box1_mc.tween("_y", "240", 1.5, easeOutBounce);
//
box1_mc.alphaTo(60, 2, easeOutElastic);
//
Fuse.closeAndStart();
Now, the class knows to fire each event; line by line! Also, you can pass in a delay, callBack, etc. (I can't tell you how much I could have used something like this 3 months ago)
So, this is just a little preview of what I am learning. If this were being used in something real, I would write it a little bit more dynamic, and pass stuff in as needed. Also, I would probably wrap some of it in a function or two so it could be called upon.
If you have not yet looked into the power of the class, check out the site now. Also, make a donation to Moses.
Simply put, it's amazing!
Here is a little breakdown of some things you can do with it. First a litle info on part of the class, and what you can pass to it: (Keep in mind, this is a VERY small part of what can be done)
public static function doTween(
targets: Object,
props: Object,
endvals: Object,
seconds: Number,
ease: Object,
delay: Number,
callback: Object): String
So, an example of that would be:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse,FuseFMP,
FuseItem);
ZigoEngine.doTween({ target:box_mc, _brightOffset:100, seconds:1, ease:"easeOutQuad"});
This would fade a movieClip with a burn type effect, taking 1 second, passing in an ease of easeOutQuad.
Another really nice feature is that you can set up a sequence of events to be fired one after another. An example of this would be:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse,FuseFMP);
var easeOutElastic:String = "easeOutElastic";
var easeOutBounce:String = "easeOutBounce";
//Let's write a fuse:
var animateBall = Fuse.open();
//
box1_mc.tween("_y", "400", 1.5, easeOutBounce, 5);
//
box1_mc.alphaTo(50, 1);
//
box1_mc.scaleTo(600, 2, easeOutElastic);
//
box1_mc.tween("_y", "240", 1.5, easeOutBounce);
//
box1_mc.alphaTo(60, 2, easeOutElastic);
//
Fuse.closeAndStart();
Now, the class knows to fire each event; line by line! Also, you can pass in a delay, callBack, etc. (I can't tell you how much I could have used something like this 3 months ago)
So, this is just a little preview of what I am learning. If this were being used in something real, I would write it a little bit more dynamic, and pass stuff in as needed. Also, I would probably wrap some of it in a function or two so it could be called upon.
If you have not yet looked into the power of the class, check out the site now. Also, make a donation to Moses.
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home