Animation duration :
Easing equation :
function init(){
empty_mc = document.getElementById('empty');
dummy_mc = document.getElementById('dummy');
empty_mc.onclick = moveSquare;
zz = new Tween(dummy_mc.style,'left','',parseInt(dummy_mc.style.left),10,1,'px');
zzz = new Tween(dummy_mc.style,'top','',parseInt(dummy_mc.style.top),10,1,'px');
}
function moveSquare(evt){
if(!evt) evt = window.event;
var x = evt.offsetX || evt.layerX;
var y = evt.offsetY || evt.layerY;
var duration = document.getElementById('myDuration').value;
var easingFunc = eval(document.getElementById('easingSelect').value);
isNaN(duration) ? duration = 1 : null;
zz.func = easingFunc;
zz.continueTo(x,duration);
zzz.func = easingFunc;
zzz.continueTo(y,duration);
}