Jump to content
Search Community

Controlling frames of a Movieclip using TimelineMax AS3

tazeem123 test
Moderator Tag

Recommended Posts

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

Yes, you can insert a tween that uses the FramePlugin in to a TimelineLite.


Here is an example of how FramePlugin works:


import com.greensock.*;
import com.greensock.plugins.*;


var tl = new TimelineLite();
tl.to(mc, 1, {frame:30})



Be sure to check out FrameLabelPlugin too

TweenLite.to(mc, 1, {frameLabel:"someLabel"});
Link to comment
Share on other sites

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})
  .to(mc, 1, {alpha:0})

function playSound() {
 //code to play sound
Link to comment
Share on other sites

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

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.
  • Create New...