Jump to:

23370 Posts in 18160 Topics by 2864 members

General Questions

SilverStripe Forums » General Questions » Flash Preloader Not Working in IE

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2746 Views
  • Adam L
    Avatar
    Community Member
    5 Posts

    Flash Preloader Not Working in IE Link to this post

    Hi all, I have a frustrating problem which I cannot pin down that hopefully someone can help with.

    I recently updated my company website and included a couple of flash objects on the home page to make the site more visually appealing but one of them is quite a large file, it's a comapny presentation which lasts a few minutes. In order to get around the blank white space issue we had a preloader made which shows the loading progress and a company logo and address. This preloader displays correctly in Firefox and Chrome but not when I view the page through IE (blank white space is shown). The web page is http://www.expd8.co.uk
    I have also added the same flash presentastion file to an IIS web server we own under a dedictaed URL which we have added to our company email signatures and this does display the preloader when using IE. http://www.expd8fieldmarketing.co.uk

    Obviously it seems to be some kind of issue with the relationships between Silverstripe CMS, the flash object and Internet Explorer.
    Any help would be very much appreciated.

    Silverstripe v 2.3.0
    IE 8

    Thanks,
    Adam

  • Adam L
    Avatar
    Community Member
    5 Posts

    Re: Flash Preloader Not Working in IE Link to this post

    Bump - anyone have any ideas please?

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Flash Preloader Not Working in IE Link to this post

    Browser differences in Flash or otherwise aren't SS's fault, and asserting that "obviously it seems to be some kind of issue with the relationships between Silverstripe CMS, the flash object and Internet Explorer." isn't going to make it so. What makes you so sure SS is the cause?

    From the sound of it, it seems like you're using a js-based preloader. Why not just build a preloader inside the Flash file itself then you wouldn't have to deal with white space issues, if you're at least decent at Flash instead of js.

    Either way, I'd try a Flash- or JS-related forum instead of this one.

  • Adam L
    Avatar
    Community Member
    5 Posts

    Re: Flash Preloader Not Working in IE Link to this post

    "What makes you so sure SS is the cause?"

    As I mentioned in my first post, I can successfully view the preloader in IE from exactly the same flash file from the second link I provided. It's only the one through SS that will not play.

    The preloader is already part of the swf flash file but this was created for us by an outside company.

    I was hoping that IE 9 would fix the issue but unfortunately this is not the case as I've just tested it and it does the same.

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Flash Preloader Not Working in IE Link to this post

    How are you embedding the flash file? Is the embed code different on the other site than the SS site? That might be the cause as some embed codes in particular only work in certain browsers and break in others, and SS is a little bit particular about how you use javascript. Look into using SWFObject if you need a cross-browser solution. Here's how I usually implement SWFObject in a SS site:

    Requirements::javascript('mysite/javascript/swfobject.js');
          Requirements::customScript(sprintf(
                "swfobject.embedSWF('%s','introMovie','%d','%d','10.0.0','mysite/media/expressInstall.swf',{'loop' : '%s','play' : '%s'})",
                'mysite/media/mmf_intro.swf',
                "946",
                "415",
                "false",
                "true"
             )
          );

    Hope that helps, and I still don't think it's a problem with SS, just maybe a problem with how you implemented it into SS.

  • Adam L
    Avatar
    Community Member
    5 Posts

    Re: Flash Preloader Not Working in IE Link to this post

    Thanks for the help Ryan, you're probably right about it being an issue with the way the flash has been embeded into SS, I'm not very experienced with HTML so I wouldn't be surprised if it was just a simple code change to make it work within IE.

    Here is my code for the flash object div:

    <div style="position: relative; margin-bottom: 15px; margin-right: 5px; top: 10px;">
    <object width="500" height="375" data="http://www.expd8.co.uk/dot38/expd8_internet/assets/Flash-Files/EXPD8.swf" type="application/x-shockwave-flash"><param name="name" value="movie" />
    <param name="src" value="http://www.expd8.co.uk/dot38/expd8_internet/assets/Flash-Files/EXPD8.swf" />
    </object>
    </div>

    Thanks again

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: Flash Preloader Not Working in IE Link to this post

    Yeah, I think it's definitely the way you're embedding it. Why don't you try using SWFObject? Here's the project page: http://code.google.com/p/swfobject/

    Drop the swfobject.js file into your mysite/javascript directory, then add the PHP code I showed you earlier into your page controller. Let us know if that works for you.

    Oh yeah, don't forget to read the swfobject documentation to get a feel for how it works, how you can set the options etc. And edit the options to fit your instance. =)

    2746 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.