Animating objects on the stage


hi guys

i've used code move object ('box') result of button click:

$(this.lookupselector("box")).css("top", 200);

$(this.lookupselector("box")).css("left", 600);

but want move position rather jump. ideas?

thanks

jquery animate rescue!

 

// set variables

var leftpos = 600;

var toppos = 200;

var tweentime = 1000;// 1 second

 

// animate "box" using jquery animate method

sym.$("box").animate({left:leftpos, top:toppos}, tweentime, 'swing');



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?