chefkeifer Posted March 14, 2010 Share Posted March 14, 2010 I am very new to this part but my clients wants this to happen... i have the following code. var bullets:TimelineMax = new TimelineMax(); bullets.append(TweenMax.to(bullet1, .25, {alpha:1})); bullets.append(TweenMax.to(bullet2, .25, {alpha:1})); bullets.append(TweenMax.to(bullet3, .25, {alpha:1})); bullets.append(TweenMax.to(bullet4, .25, {alpha:1})); what i need is when that bullet come in..i need a sound to happen at the same time. for each bullet...like boom boom boom boom. never used sound and cannot find anywhere how to add this using tweenmax Link to comment Share on other sites More sharing options...
TronicVolta Posted March 14, 2010 Share Posted March 14, 2010 I would probably use the special property onStart and call a function that plays the sound at the start of each tween. TweenMax.to(bullet1, .25, {alpha:1, onStart:playSound}); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now