via PayPal / credit card
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Hi!
I have a trouble!
Method isPlaying() always returns false in IE8. But it works fine in FireFox and Chrome.
Below is example of code:
var flashvars = { callBackFunction: "initializeMonoslideshow" };
var params = {allowscriptaccess: "always", allowfullscreen: "true", allownetworking: "all"};
var attributes = {id: "monoslideshow", name: "monoslideshow", bgcolor: "000000"};
swfobject.embedSWF("monoslideshow.swf", "flashContent", "480", "360", "10", false, flashvars, params, attributes);
function initializeMonoslideshow() {
setInterval(testForPlay, 500);
}
function testForPlay()
{
// If play is on then result of isPlayng() method is wrote to document title.
document.title = document.getElementById("monoslideshow").isPlaying();
}
Is it a bug? Or is it my mistake?
Somebody can help me? Please...
Don't know if this is related but I get a script error in IE8 anytime I add the callBackFunction flashvar.
I have tested and it appears to originate with the addition of this var in the swfobject flashvar string.
No error in Firefox, Safari, Chrome
I think there's something wrong in IE with setting and getting the monoslideshow instance. Have you tried this alternative? (where "flashContent" is the ID of the <div> where Monoslideshow will be placed):
var attributes = {data: "monoslideshow.swf", width: "640", height: "480"};
var params = {allowfullscreen: "true", flashvars: "callBackFunction=onMonoslideshowInitialized"};
var monoslideshow = swfobject.createSWF(attributes, params, flashContent);
and then:
document.title = monoslideshow.isPlaying();
For whatever reason, the callback does not fully work in IE7 or 8 (6 not tested)
I have used every possible dynamic/static combination of swfobject to embed a slideshow into a site.
the callback triggers an error in IE, but it continues to work for some methods, like jumptoImage, whereas it totally fails for getter methods like isPlaying.
This actually used to work much better in previous versions of the SWF with swfobject 1 so I really can't explain what's going on beyond this.
This means unfortunately there is no way to properly use togglePause on IE.
If callbacks can't be sorted out.. wouldn't it be good to have a method that's just play(); and pause()?
As received via email:
Apparently there is a problem with using the callback name of "isPlaying" in IE. You probably have this piece of code somewhere:
ExternalInterface.addCallback("isPlaying",onIsPlayingFromContainer);
simply change it to:
ExternalInterface.addCallback("isSlideshowPlaying",onIsPlayingFromContainer);
creator of Monoslideshow1 to 6 of 6