Matt Kloskowski offers this video tutorial for creating stunning multi-photo collages in Photoshop.
|
Download Flash player |




Level: Experienced Software:
Matt Kloskowski offers this video tutorial for creating stunning multi-photo collages in Photoshop.
|
Download Flash player |
Hi im trying to do this tutorial and im almost there but Flash does not like one of the lines !!!
here is all of the code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xBall = Stage.width/2;
var yBall = Stage.height/2;
ball_mc._x = xBall;
ball_mc._y = yBall;
ball_mc.onPress = function () {
ball_mc.startDrag();
}
ball_mc.onRelease = function () {
ball_mc.stopDrag();
ball_mc.enabled = false;
var xTween:Tween = new Tween (ball_mc, "_x", Elastic.easeOut,ball_mc._x, xBall, 2,true);
var yTween:Tween = new Tween (ball_mc, "_y", Elastic.easeOut,ball_mc._y, yBall, 2,true);
xTween.onMotionFinished = function () { ball_mc.enabled = true;
}
}
ok, Flash does not like this line: xTween.onMotionFinished = function () {Flash says " There is no property with the name 'onMotionFinished'."
also when i take out the x in the beginning it actually works but only ONCE!
Please help, as i really like this animation (for my project)