see live demo!

Not signed in (Sign In)

Categories

 

buy Monoslideshow

via PayPal / credit card

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorcmz
    • CommentTimeFeb 15th 2010
     permalink

    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?

    • CommentAuthorcmz
    • CommentTimeFeb 24th 2010
     permalink

    Somebody can help me? Please...

    • CommentAuthorRW
    • CommentTimeMar 9th 2010
     permalink

    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

    •  
      CommentAuthorMonokai
    • CommentTimeMar 15th 2010
     permalink

    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();

    creator of Monoslideshow
    • CommentAuthorartsy.ca
    • CommentTimeMar 30th 2010
     permalink

    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()?

    •  
      CommentAuthorMonokai
    • CommentTimeJun 16th 2010
     permalink

    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 Monoslideshow

monokai logo © 2009 Monokai, all rights reserved. Buy Monoslideshow.