[Tweener] Tween and geom.Matrix
Makc
makc.the.great at gmail.com
Wed Jan 6 09:07:09 PST 2010
// try this:
Tweener.addTween (m, {
c: (midX - _xmouse)/midX*scale,
tx: midX + (_xmouse-midX)*scale,
ty: midY + (_ymouse-midY)*scale,
time: 1,
onUpdate: function ():void {
my_mc.transform.matrix = m;
}
});
On 12/30/09, Adrien <realeon at hotmail.com> wrote:
> Hello every one,
>
> I'm trying to put a tween on this one
> I've tried several things without success
> thx in advance if you have time to give it a glance
>
> /////////////////////////////////////////////////////////////////////////////////////////
> import caurina.transitions.Tweener; // that's the only thing I got right
> really :-p
>
> var m:flash.geom.Matrix = new flash.geom.Matrix();
> var midX = Stage.width/2
> var midY = Stage.height/2
> var scale = -0.3;
>
> onMouseMove = function(){
> m.a = 1;
> m.b = 0;
> m.c = (midX - _xmouse)/midX*scale;
> m.d = 1;
> m.tx = midX + (_xmouse-midX)*scale;
> m.ty = midY + (_ymouse-midY)*scale;
> my_mc.transform.matrix = m;
>
>
> };
>
> /////////////////////////////////////////////////////////////////////////////////////////
>
> thx
> Adrien
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
More information about the Tweener
mailing list