SWF in Articulate

Mar 09, 2011

Hi,

I have several .swf files that i have embedded in my presentation. Most of them are over 3 Mb and due to the network capacity here I need to ensure the swf load completely before it starts playing.

I was wondering if anybody know if Articulate will start playing the .swf only after it has completely loaded or as soon as you get on the slide.

If it doest wait I will have to incorporate some sort of loading progress bar so prevent the animation from starting before it is loaded.

Any advice on this? Thanks!

2 Replies
Phil Corriveau
I was wondering if anybody know if Articulate will start playing the .swf only after it has completely loaded or as soon as you get on the slide.


Hi Frédéric.  I believe it depends on the SWF itself.  Jade's preloader suggestion is the easiest and probably best solution.  But if you are a Flash user and want to go the extra mile to ensure that the entire SWF downloads before playing, you can try creating two frames before the actual content in your SWF--with the second frame using the following code:

//this script ensures that the entire movie has downloaded before playing the
//actual content.  This should have no effect when run as a local standalone
//movie.

if (this.getBytesLoaded() < this.getBytesTotal())
{
    prevFrame();
    play();
}
else
{
    nextFrame();
    play();
}

Disclaimer:  This code is ActionScript 1, over 6 years old, and I have never specifically used it with Articulate.  Although I see no reason why it wouldn't work, I can't guarantee it.

I hope this helps.

-Phil

This discussion is closed. You can start a new discussion or contact Articulate Support.