Share Posted October 30, 2013 Hi All, I want to control the frames of design time movieclip. I have a movieclip which has 100 frames animation. And i want to control the frames with other tween animation in Timeline. However I am unable to achive this because pausing a parent timeline doesn't pause the inner moviclips animation. Is it possible to control the (design time frame) animations in TimelineMax?? Link to comment Share on other sites More sharing options...
Share Posted October 30, 2013 Yes, you can insert a tween that uses the FramePlugin in to a TimelineLite. Here is an example of how FramePlugin works: http://www.snorkl.tv/2010/10/overview-of-tweenmax-framelabel-and-frame-plugins-nifty-way-to-play-a-flash-timeline-backwards/ import com.greensock.*; import com.greensock.plugins.*; TweenPlugin.activate(["FramePlugin"]); var tl = new TimelineLite(); tl.to(mc, 1, {frame:30}) http://api.greensock.com/as/com/greensock/plugins/FramePlugin.html Be sure to check out FrameLabelPlugin too TweenLite.to(mc, 1, {frameLabel:"someLabel"}); Link to comment Share on other sites More sharing options...
Author Share Posted October 31, 2013 Thanx, Additionally i want to control audio by adding an audio into a Timeline (dynamically). Is it possible to control audio (play, pause etc.) by any grrensock plugin?? Link to comment Share on other sites More sharing options...
Share Posted October 31, 2013 We don't have any sound related tools other than MP3Loader and the VolumePlugin You can add callbacks to a timeline that can tell a sound to play but that's about it. The sounds will not be synchronized with the timeline, meaning pausing the timeline won't pause the sound. var tl = new TimelineLite() tl.to(mc, 1, {x:200}) .call(playSound) .to(mc, 1, {alpha:0}) function playSound() { //code to play sound } Link to comment Share on other sites More sharing options...
Author Share Posted November 1, 2013 Thanx for your quick replies. i will use the public methods to synchronise the audio. But i would love to have audio handling with Greensock as it will help us to play, pause, reverse etc. controls. Anyways thanx a lot for the help. You made my one week work worth it. Greensock ROXXXXX ... Happy Halloweening 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