ActiveDen

XML Image/Video Grid Gallery

How to change the background color?

You can change the background color of the swf in the HTML , don’t need to open the main.fla. Just add the bgcolor parameter:
        
var params = {
  bgcolor: "#0099FF" 
};
swfobject.embedSWF("main.swf", "gallery", "100%", "100%", "9.0.0","expressInstall.swf", 
flashvars, params, attributes);            
Replace #0099FF with other color as you like.

How to load a certain xml instead of gallery.xml in the xml folder?

var flashvars = {
  xmlPath: "xml/example.xml" 
};
swfobject.embedSWF("main.swf", "gallery", "100%", "100%", "9.0.0","expressInstall.swf", 
flashvars, params, attributes);            
It use flashvars to load xml/example.xml instead of the default xml(xml/gallery.xml) file. Please pay attention that you need to embed main.swf instead of preview.swf(the preloader) here to use the flashvars.

How to embed this gallery in a WordPress post?

You need to change all the path to a absolute path(a URL start with http) in most of the time if you want to embed the swf in a WordPress post. For exampel:
swfobject.embedSWF("http://www.yourdomain.com/upload-content/main.swf", "gallery", "100%", "100%",
 "9.0.0","expressInstall.swf", flashvars, params, attributes);            
And you need to set all the assets’ location to a absolute path in the xml at the same time, for example:
<asset thumbnail=”http://www.yourdomain.com/upload-content/thumbnails/default/img1.png”
url=”http://www.yourdomain.com/upload-content/images/default/img1.png”
type=”image”>
</asset>

How to load the thumbnails horizontal instead vertical?

In the loadThumb function in the Main.as, at about line 236, you can custom to:
/*
if (xCol+1 < Math.ceil(assetsNum/rows)) {
       xCol++;
} else {
       xCol = 0;
       yCol ++;
}
*/
if(yCol+1 < rows){
       yCol++;
}else{
       yCol = 0;
       xCol++;
}

This will change the thumbnails loading direction.

by
by
by
by
by