Jump to content
Search Community

How can I control a timelinemax which is inside a loaded swf

opamint test
Moderator Tag

Recommended Posts

Hi,

I have a file which has a timeline like this:

var myTimeline:TimelineMax = new TimelineMax();

 

This file is loaded inside a main movie and I have to pause/play the load movie timeline from the main movie.

The swf file is loaded inside a movieClip named slideContainer.

I've tried something like this but doesn't work:

 

slideContainer.myTimeline.pause();

and

slideContainer.myTimeline.play();

 

I have to mention that the loaded swf file is for sure the slideContainer because I've done something like this after the loading of the swf:

 

function loadFinished(event:Event):void {

slideContainer=event.target.content as MovieClip;

addChild(slideContainer);

}

 

 

Do you have any suggestions?

Thank you very much!

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...