ha, ya im confused - but only because of how you are going about this. It's like you are taking the scenic route, lol.
QUOTE(qbattersby @ Feb 7 2008, 04:00 AM)

This is what I have, a movie clip that plays when a button is pressed. It plays from frame 1-51 which is the fading in, it stops on 51, then when you click the button again it moves to frame 52 which plays the fading out. I dont understand what this FuseKit is supposed to help me with.
with FuseKit, instead of actually making 51 frames of a clip fading in/out, you would simply write:
clipname_mc.alphaTo(100);
that one line of code would fade your movieclip in, without making actual frames. This is better in many ways - smaller filesize, easier to update, easier to read the code, etc.
Plus, to have a action of a button change, it's even easier using a callback function... but I wont get into that. basically, this is how I would do it (in pseudo-ish code)
clipname_mc.alphaTo(100);
clipname_mc.onPress=function(){
if (this._alpha == 100){
this.alphaTo(0);
}
}
that's it! but it's even easier with a callback...
var blnFade:Boolean = false;
function fadeIn() {
clipname_mc.alphaTo(100,null,null,null,toggleFade);
}
function fadeOut(){
clipname_mc.alphaTo(0,null,null,null,toggleFade);
}
function toggleFade(){
if(blnFade){
clipname_mc.onRelease = fadeIn;
} else {
clipname_mc.onRelease = fadeOut;
}
blnFade=!blnFade; // toggles the variable
}
and that function can be made even shorter with a ternary!
function toggleFade(){
clipname_mc.onRelease = (blnFade) ? fadeIn : fadeOut;
blnFade=!blnFade;
}