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.

You must sign in or sign up to purchase this item.

$20Regular Licence

$20

Regular Licence a website (commercial, personal, client), free game, e-card, or presentation - Details

$200Extended Licence

$200

Extended Licence an app, paid game, or other software project, a website template for sale - Details

425 Purchases 150 Comments

Buyer Rating
12345 ( 64 ratings )
sike

sike

  • Has been a member for 5-6 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Interviewed on the Envato Notes blog
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
View Portfolio
Created 28 March 10
ActionScript Version AS3
Documentation Well Documented
Flash Files Included ActionScript AS, Flash FLA, HTML Files, JS Files, XML Files
Opens With Flash CS3 (9+), Flash CS4 (10+)
Published Size 49kb
Resolution Resizable
by
by
by
by
by