Yeah this isn't too difficult to do if you know about full browser flash. Just instead of having this:
Code:
function setMenu() {
mymc._y = Stage.height-20;
mymc._x = Stage.width/2;
}
stageListener.onResize = function () {
setMenu();
}
you would have this:
Code:
mymc._y = Stage.height-20;
mymc._x = Stage.width/2;
function reset() {
import mx.transitions.Tween;
import mx.transitions.easing.*;
var nX:Tween = new Tween(mymc, "_x", Strong.easeOut, mymc._x, Stage.width/2, .3, true);
var nY:Tween = new Tween(mymc, "_y", Strong.easeOut, mymc._y, Stage.height-20, .3, true);
}
stageListener.onResize = function () {
reset();
}
I have used standard Flash actionscript animation. You can read more about that if you google the transitions and easing class.
Bookmarks