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.
2 Comments
I`m happy that I have found another blog about elearning .
I hope you place more note about Captivate 3 .
very useful
One Trackback
[...] 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. [...]