Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Mika

Sound and timeline to-frame animation issue

Recommended Posts

Hi there,

I am using tweenmax to animate a long timeline based on time vs frame rate:

 

 

TweenMax.to(content, content.totalFrames/24, {frame:content.totalFrames, ease:Linear.easeNone});

 

 

It works like a charm expect one thing:

 

The audio in the timeline is not being played anymore.

 

Did anyone ever ran into that issue before? Any help would be much appreciated. Thank you!

Link to comment
Share on other sites

Hi and Welcome to the GreenSock forums!

 

I believe this is the expected behavior. When you control a timeline via the frame plugin the timeline isn't actually play()-ing. A gotoAndStop() method is being performed repeatedly on subsequent frames.

 

You could create a Sound() object and play it when the tween starts.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html

Link to comment
Share on other sites

You could create a Sound() object and play it when the tween starts.

http://help.adobe.co...edia/Sound.html

 

True, unfortunately 'content' is a swif loaded on the fly and I can not recompile it. In some of those loaded swif, there are several sound layers and sometimes at diferent frames.

 

I was hoping for a magic Tweenmax propery I gues :)

 

Thanks for the help!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×