Hi Everyone,
I had this working fine in flash MX 2004 but I have updated to flash 8 and a Im tring to get it to work with fuse.
The strange thing is that when I test the movie in flash it works fine but when I launch it in my browser the movie clip won’t reposition.
Here is my code…
import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse,PennerEasing,FuseFMP);
Stage.scaleMode = "noscale";
Stage.align = "tl";
ball._x = (Stage.width - ball._width)/2;
ball._y = -70;
Stage.addListener({onResize:reposition});
function reposition() {
var center = _root.ball;
var nPos;
nPos = getNewPosition(center);
FuseFMP.writeFilter(ball,"Blur",{blurY:10, blurX:10, quality:1})
var f:Fuse = new Fuse();
f.push({target:center, x:Math.floor((Stage.width - ball._width)/2), y:Math.floor((Stage.height - ball._height)/2), Blur_blurX:0, Blur_blurY:0, seconds: 0.5, ease:"easeOutQuad", func: afterFuse, scope:center});
f.start()
};
function getNewPosition(mc) {
var newX = Math.floor((Stage.width - mc._width) / 2);
var newY = Math.floor((Stage.height - mc._height) / 2);
return {x:newX, y:newY};
};
reposition();
Anyone got an idea what Im doing wrong, Im going to have to revert back to MX 2004 and if I can’t get this to work and I don’t really want to do that.
The fla can be found here…
http://www.primografik.com/downloads/Fuse_Ball_test.zip
Thanks