Jump to content


How can I bring external swf file on form ater 1 minute?

Moderator Tag

Recommended Posts



How can I bring my external Highlights.swf file on form ater 1 minute of index.htm loading?


Please help.



Link to comment
Share on other sites

assuming the problem is with waiting a minute and not loading the swf, you can use TweenLite.delayedCall()


delayed call allows you to set a delay in seconds and also specify what function to run.


you could use it like this:

TweenLite.delayedCall(60, loadSwf)

function loadSwf(){
trace("time to load the swf");
//add loaderMax code here to load swf


if you need to learn about loading external content read this: http://www.greensock.com/loadermax/

Link to comment
Share on other sites



Thanks for the reply. What I need is ....


1) Index page to be loaded first.

2) wait for one Minute ...

3) Load external file "Highlights.swf"

4) Wait for 30 Seconds ....

5) Unload "Highlights.swf"

6) Load external swf file "CurrentEvents.swf"


so on ....


Is there any full sample code example which can help me to understand.



Link to comment
Share on other sites

There is a lot of information available on loading external assets.


after reading the link I suggested above, please read and watch:




http://www.greensock.com/as/docs/tween/ ... oader.html

(see the section AS3 Code Example)


loaderMax is well suited to load a series of external assets, pause the loading of those assets and unLoad the assets when they are no longer needed.

I would start with understanding how to load a single asset with swfLoader, then experiment with loaderMax and creating a queue.


Once you have a queue that loads a series of assets successfully, you could have a onChildComplete function that pauses the queue, waits 30 seconds, and then resumes the queue.


The resources above are a great place to start.


Once you get you attempt to get a loaderMax queue, you may find some additional invaluable resources in the loaderMax forum: viewforum.php?f=6



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.