Topic: preloader

if you are using the flash embed option is this the point you would change preloader colour on simpleviewer swf

* Fired when preloader is available
* Can set flashvars at this point
function onViewerInit(e:Event):void{
    //listen for
    Object(svLoader.content).addEventListener("svComplete", onGalleryLoaded);
    var options:Object = Object(svLoader.content).embedOptions;
     //set gallery.xml url based on current galleryId
    options.galleryURL = galleryURL;   

and how would you do it changing it in the embed options doesn't work

Re: preloader

You can set the preloaderColor when loading the gallery in the loadGallery function by changing the line:

var urlReq:URLRequest = new URLRequest("simpleviewer.swf");

... to:

var urlReq:URLRequest = new URLRequest("simpleviewer.swf?preloaderColor=#ff0000");
Steven Speirs
SimpleViewer Support Team.

Re: preloader

thanks for the fast and helpful reply