Preloaders in Captivate - customized and/or just changing the percentage preloaded

 

All of the preloaders that come stock with Captivate 3 have their associated fla and swf files in the following directory by default:

C:\Program Files\Adobe\Adobe Captivate 3\Gallery\Preloaders

To create your own preloader, all you’ll need to do is copy one of the existing fla files, modify the graphics or create fresh ones (just make sure to apply the proper instance names like the original), compile, and be done.

If you need to change the percentage loaded in a stock (or customized) Captivate preloader, just open up the fla in flash and click on the actions frame. You’ll see the following code:

/////////////////////////////////////////////////////////////////////////////////

//Called when the preloader displays, useful if you need the size of the movie
function initialize(movieWidth:Number, movieHeight:Number)
{

}

function onProgress(loadedBytes:Number,totalBytes:Number)
{
var percentDone:Number = Math.round((loadedBytes / totalBytes) * 100);
//Load 60% before starting movie.
if(percentDone > 60)
this.done = true;
percent_txt = percentDone+”%”;
}

function isDone():Boolean
{
//by default the preloader will show until all frames are loaded
//this function can override this bahavior
if(this.done)
return true;
else
return false;
}
/////////////////////////////////////////////////////////////////////////////////

Change the 60 in the line that reads:

if(percentDone > 60)

…to whatever percentage you want.

That said…in my experience 60% is ususally a good number, unless you’re confident that people will not jump too far forward in a larger Captivate swf.

This entry was posted in Captivate. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

 

2 Comments

  1. Omid
    Posted April 22, 2008 at 5:19 pm | Permalink

    I`m happy that I have found another blog about elearning .
    I hope you place more note about Captivate 3 .

  2. Vitor
    Posted April 28, 2008 at 1:37 pm | Permalink

    very useful :)

One Trackback

  1. By Dynamics CRM-film | ljd.dk on September 7, 2008 at 4:22 pm

    [...] Preloaders in Captivate - customized and/or just changing the percentage preloaded Du kan følge kommentarer på dette indlæg gennem dette RSS 2.0 feed. Du kan efterlade et svar, eller trackback’e fra din egen side. [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Subscribe without commenting