thecringe
07-19-2004, 08:42 PM
Hi,
This was my first ever AS animation atempt and it works OK but I am wondering if my approach is wierd or just wrong with the set_intervals. Is there a better way to go about sequential animations (they overlap so I don't think I can use different frames).
Also, the main movment is
"new mx.transitions.Tween(darkYellow_mc, "_x", mx.transitions.easing.Regular.easeOut, 0, -750, 2.8, true);"
It is not so smooth.
Is there any flaw in this approach?
The end result can be seen here:
http://cheekybrand.lunarpages.com/
The animation I was hired to duplicate is here:
http://www.gucci.com/us/index2.html
Thank you to anyone who has the time to take a look. Any advice would be greatly apriciated
-Dinshaw
stop();
transYellow_mc._x = 0;
yellowTween = new mx.transitions.Tween(darkYellow_mc, "_x", mx.transitions.easing.Regular.easeOut, 0, -750, 2.8, true);
delay = setInterval(
function(){
yellowTween2 = new mx.transitions.Tween(transYellow_mc, "_x", mx.transitions.easing.Regular.easeOut, 0, -750, 2.2, true);
clearInterval(delay);
}, 600 );
delay1 = setInterval(
function(){
delay2 = nextFrame();
clearInterval(delay1);
}, 2800 );
This was my first ever AS animation atempt and it works OK but I am wondering if my approach is wierd or just wrong with the set_intervals. Is there a better way to go about sequential animations (they overlap so I don't think I can use different frames).
Also, the main movment is
"new mx.transitions.Tween(darkYellow_mc, "_x", mx.transitions.easing.Regular.easeOut, 0, -750, 2.8, true);"
It is not so smooth.
Is there any flaw in this approach?
The end result can be seen here:
http://cheekybrand.lunarpages.com/
The animation I was hired to duplicate is here:
http://www.gucci.com/us/index2.html
Thank you to anyone who has the time to take a look. Any advice would be greatly apriciated
-Dinshaw
stop();
transYellow_mc._x = 0;
yellowTween = new mx.transitions.Tween(darkYellow_mc, "_x", mx.transitions.easing.Regular.easeOut, 0, -750, 2.8, true);
delay = setInterval(
function(){
yellowTween2 = new mx.transitions.Tween(transYellow_mc, "_x", mx.transitions.easing.Regular.easeOut, 0, -750, 2.2, true);
clearInterval(delay);
}, 600 );
delay1 = setInterval(
function(){
delay2 = nextFrame();
clearInterval(delay1);
}, 2800 );