ios - Overwrite animation duration in Appcelerator -


i developing game has timer bar running across screen while playing. when game ends want timer bar stop running. have following animation:

var startanimation = ti.ui.createanimation({     right: "0dp",     duration: 20000,     curve: titanium.ui.animation_curve_linear });  //animate progress bar $.timegoalprogress.animate(starthighscoreanimation); 

which want overwrite with:

var stopanimation = ti.ui.createanimation({     right: "100dp",     duration: 1 });  $.timegoalprogress.animate(stopanimation); 

but duration of animation not overwritten second duration. happens right value replaced new right value, duration stays 20000.

does know how overwrite duration of animation? use sdk version 3.5.1 , developing ios.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -