[Tweener] Tween and geom.Matrix

Adrien realeon at hotmail.com
Wed Dec 30 06:08:05 PST 2009


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


More information about the Tweener mailing list