View Full Version : custom easing elastic motion?
rach236
10-22-2007, 11:58 AM
Hi, just a quick question, is there a way to create an elastic movement using the custom easing tool in Flash 8. When I click 'edit' I get the graph which lets me play with the easing, but I can't move the curve beyond 100% which I need to do to simulate elastic motion. Is there a way round this or is it just back to adding keyframes?
evride
10-22-2007, 08:33 PM
moving that slider will do nothing for elastic movements.
just use the mx.Transitions class.
code taken from the livedocs page at http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001502.html
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(ball_mc, "_x", Elastic.easeOut, Stage.width, 0, 3, true);
//ball_mc is the movieclip that will tween.
rach236
10-22-2007, 08:38 PM
yeah thought as much. My registration points are not in the right place for using the class and I have lots of mcs. Never mind, next time I will think it through a bit more. Thanks for the response :)
Scuba_Steve
10-26-2007, 02:18 PM
This tool has been invaluable to me for customizing tweens.;)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.