Topic: I can't download images
Everything is ok, but when i click download button for an image, a dialog appears but download doesn't start.
With Firebug I can see the url for download isn't right, because it doesn't take care of flashvar.baseURL and try to download from current directory.
For example: (_root)/gallery/image1.jpg instead of (_root)/media/imgs/demo1/image1.jpg
My gallery is displayed at: (_root)/gallery/index.php
And my images are under: (_root)/media/imgs/*
So I have:
(_root)/gallery/simpleviewer.swf
(_root)/media/imgs/demo1/gallery.xml
(_root)/media/imgs/demo1/image1.jpg
My gallery.xml contains:
<image imageURL="image1.jpg"><caption></caption></image>
My index.php contains a script with:
var flashvars = {};
flashvars.baseURL = "/media/imgs/demo1/";
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "F4E7BD";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "700", "650", "9.0.124", false, flashvars, params);
So, how can i set the baseURL for downloading ?