My name is Anubhav! I was developing a Arkanoid style game in AS3. And I am having some problems with the following TweenLite code :
TweenLite.to(costume, 1, {
alpha: 0,
y: posY,
scaleX: 0,
scaleY: 0,
rotation: 30,
onComplete: function() {
dispatchEvent(new BrickEvent(BrickEvent.HIT_BALL));
},
overwrite: OverwriteManager.CONCURRENT
});
The above code is fired when a ball hits a brick (to animate the brick costume). The problem is that Tweenlite is just changing the alpha
, scaleX
and scaleY
properties while y
and rotation
properties remain untouched. I tried using TweenMax and changing the overwrite options to NONE
, ALLONSTART
, ALLIMMEDIATE
etc. but none of them is working. I have no idea why this is happening. Please help me out! :)