Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Flash Preloader Not Working in IE


Reply


7 Posts   2921 Views

Avatar
Adam L

Community Member, 5 Posts

10 February 2011 at 3:31am

Edited: 10/02/2011 3:35am

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

Avatar
Adam L

Community Member, 5 Posts

15 February 2011 at 11:44pm

Bump - anyone have any ideas please?

Avatar
Ryan M.

Community Member, 309 Posts

16 February 2011 at 5:39pm

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.

Avatar
Adam L

Community Member, 5 Posts

17 February 2011 at 1:41am

"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.

Avatar
Ryan M.

Community Member, 309 Posts

17 February 2011 at 12:37pm

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.

Avatar
Adam L

Community Member, 5 Posts

18 February 2011 at 5:00am

Edited: 18/02/2011 5:02am

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

Avatar
Ryan M.

Community Member, 309 Posts

18 February 2011 at 7:50am

Edited: 18/02/2011 7:52am

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

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. =)