PDA

View Full Version : Fuse kit and loop effects


ryosaeb4
03-07-2008, 02:26 PM
Dear friend

I've learn with a video tutorial how to use FUSE KIT for animation.

Well I'm not Actionscript expert, and Fuse too...But I wish make effects on my flash project.

I've use this push array code in a frame:

import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse , FuseFMP);
Fuse.AUTOCLEAR = true;

var f:Fuse = new Fuse();
f.label = "swoopyIntro";
f.target = img1_mc;

pos = random(4)+1;
this.img1_mc.gotoAndPlay("s"+pos);
trace("il movie è al fotogramma: s" + pos);



f.push({
addCommand: "start"
});


f.push({ //delay: .1,
trigger: .1
});

// labels can be used in some methods but are mostly a convenience.
f.push({ label: "appear",
start_scale: 150,
time: 4.75,
ease: "easeInOutQuad",
trigger: .1 // advances this action early
});


//prova di movimento lento
f.push({ label: "muoviti",
start_alpha: 0,
time: 1.75,
ease: "easeOutQuad",
trigger: .1
});


f.push({ label: "muoviti",
time: 3.75,
ease: "linear",
trigger: .1
});


// the array brackets in this action form a group of parallel tweens
f.push([
{ label: "swoop",
//x: "0",
//y: "0",
controlX: "5",
controlY: "1", // adds a bezier curve
time: 1.5,
ease: "easeInSine"
},



// these tweens bounce back, by using 2 cycles
{ brightOffset: 3,
rotation: .1,
ease: "easeInOutQuad",
cycles: 2,
time: .5,
delay: .25
}]);

// a simple callback. You could also subscribe to the "onComplete" event.
f.push({target:img1_mc, _alpha:0, seconds:2, ease:"easeOutQuad", delay: .1, scope:img1_mc});

f.push({ func:"trace", args:"done!" });


f.traceItems();
f.start(true);



All work good, but I haven't loop... how I must do do resume the fuse effects?

In the "img1_mc" I've 3 img on 3 different frame (that I've label s1 - s2 - s3), that I wish change everytime that fuse run again.

You can see the swf here:

http://www.walterfantauzzi.com/forum/fuse4/


Someone can help me with the syntax?



thanks