Topic: Flash embedded options

I have a SV flash embedded gallery. It works fine.
I just want to know if it is possible to change the thumbnailRows and thumbnailColumns options in the Action script code.
It doesn't seem to be possible with the API.

With 1.9 version, it was possible by setting the value.

I tried
var options:Object = Object(svLoader.content).embedOptions;
     //set gallery.xml url based on current galleryId
    options.galleryURL = galleryURL;   
    options.baseURL = "fashion";
    options.thumbnailRows = "10";

but it didn't work.

Thanks for your answer,
Regards

Re: Flash embedded options

To set options via ActionScript you need to take the correct property name from here. To set the thumbnails rows you should use thumbRows not thumbnailRows.

You can set the thumb rows and columns in ActionScript as follows:

    var options:Object = Object(svLoader.content).embedOptions;
    options.thumbRows="4";
    options.thumbColumns="3";
Mike Richards
SimpleViewer Support Team.

Re: Flash embedded options

I tried your solution yesterday

function onViewerInit(e:Event):void{
    trace("onViewerInit");
    
    //listen for
    Object(svLoader.content).addEventListener("svComplete", onGalleryLoaded); 
    
    trace("setViewerFlashVars");
    var options:Object = Object(svLoader.content).embedOptions;
     //set gallery.xml url based on current galleryId
    options.galleryURL = galleryURL;    
    options.baseURL = "fashion";
    options.thumbRows="10";
    options.thumbColumns="10";
}

But the gallery still use the default value for this options.

Re: Flash embedded options

The code looks ok, so most likely either the swf didn't export correctly or the XML has row and column properties in it.

Mike Richards
SimpleViewer Support Team.