Its pretty simple what im trying to achieve. I have a MC on Stage, which im trying to tween to different X coordinates.
我已经设置了四个TweenSite.to序列,但出于某种奇怪的原因,只有一个被触发了——我做错了什么?
TweenLite.to(slider.mc_slider,1,{x:_returnXPos(95), ease:menuEasing});
TweenLite.to(slider.mc_slider,1,{delay: 1, x:_returnXPos(35), ease:menuEasing});
TweenLite.to(slider.mc_slider,1,{delay: 2, x:_returnXPos(50), ease:menuEasing});
//Function which returns x coordinate of Sliderbar - related to defined percentage
function _returnXPos(definedPercentage:Number):Number {
var defineWidth:Number = slider.mc_background.width * (definedPercentage/100);
return defineWidth;
}