Animate from user selected position on the stage
i have new idea i'm playing with. want user click on screen (ie stage) , create element animate element fixed location on stage, once element has reached desired location play animation on timeline location "start". i've found way click create element need way animate, code, element user clicked/created want be, ease in/out. when users clicks creating var "word1" instance of sym text animation of word "ways".
this code stage.mousedown
var word1 = sym.createchildsymbol("ways", "stage");
var word1element = word1.getsymbolelement();
var posx = (e.pagex- ($(word1element).width()/2)) + "px";
var posy = (e.pagey- ($(word1element).height()/2)) + "px";
sym.$(word1element).css({"position":"absolute", "top":posy, "left":posx});
//to point works desired...
//animate code goes here... animate above creation point x=60px , y=350px ease in/out
//then...
sym.play(start)
any suggestions , direction appreciated
thanks
joel h
could use jquery .animate() ??
More discussions in Edge Animate CC
adobe
Comments
Post a Comment