via PayPal / credit card
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
I'd like to parse the xml directly ffrom the html to Monoslideshow. The manual writes about this:
Pass XML data directly to Monoslideshow
By passing the Flash® variable xml via SWFObject, you can directly pass a Monoslideshow formatted XML string to the Monoslideshow instance. This variable overrides the data file specified in the attribute dataFile. Below is an example of passing a XML string to Monoslideshow.
var flashvars = {xml:
'<album title="!" itemPath="test/images/" thumbnailPath="test/thumbnails/">' +
'<contents>' +
'<image source="1.jpg" />' +
'<image source="2.jpg" />' +
'<image source="3.jpg" />' +
'</contents>' +
'</album>'
};
var params = {allowScriptAccess: "always"};
var attributes = {id: "monoslideshow", name: "monoslideshow"};swfobject.embedSWF(
"Monoslideshow.swf", "flashContent",
"480", "360", "10", false,
flashvars, params, attributes
);
But I can't get it working in my Tumblr blog....
The script/code that I use to put a MSS on my blog is:
<p> <code>
<div id="monoSlideshow3">
<p><strong>Please install Flash® and turn on Javascript.</strong></p>
</div><script type="text/javascript">
var so = new SWFObject("http://www.dinky-di.eu/monoslideshow.swf", "SOmonoSlideshow", "400", "300", "7", "#ffffff");
so.addVariable("dataFile", "http://www.dinky-di.eu/monoslideshow1.xml");
so.write("monoSlideshow3");</script></code></p>
I've no idea how to mix these two. What script do I exactly need to parse xml right away to MSS and put the whole thing in my blog?
By the way the link to my blog is: http://dinky-di.tumblr.com
For a first step, I made it less complicated (without parsing the xml).
The code below results in: "Error loading slideShow "monoslideshow.xml"."
<div id="flashContent">
<p>Please install Flash®</p>
</div>
<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF(
"http://www.dinky-di.eu/monoslideshow.swf", "flashContent",
"480", "360", "10", false,
flashvars, params, attributes
);
</script>
For that reason I changed it to a custom xml-file. I added this:
dataFile: "http://www.dinky-di.eu/monoslideshow1.xml"
That works!
After that I changed it to:
var flashvars = {xml:
'<album title="Album Title" >' +
'<contents>' +
'<image source="http://www.dinky-di.eu/a.jpg" />' +
'<image source="http://www.dinky-di.eu/b.jpg" />' +
'<image source="http://www.dinky-di.eu/c.jpg" />' +
'</contents>' +
'</album>'};
This resulted again in: "Error loading slideShow "monoslideshow.xml".
But what's wrong? In this case I don't need a xml-file isn't it? Or must there a xml-file and are the image sources in the xmf-file override by the code above?
If so, the problem is that I have to write down the whole url. Is there a possibility to combine the code above with a custom xml?
Added this to the 'var params':
base:"http://www.dinky-di.eu"
But now it uses the images of monoslideshow.xml instead of the images of the parsed xml...
I think the problem is, that this is only possible in V2.0.......
Am I right?
1 to 4 of 4