SWFObject Alternative Text or Image
Posted: 04 March 2009 01:03 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  201
Joined  02-26-2005

I’ve got the SWFObject method of placing Flash content working (I think, so far), but when viewing the page the alternative content appears first, then is covered as the Flash content loads and appears. That doesn’t seem right, but I’ve not been able to find information anywhere that agrees with me.  tongue rolleye

Is that how it’s supposed to work?

I’m using SWFObject with Slideshow Pro and Director and have the expressInsall file in the correct place and so noted in the code with full URLs.

 Signature 

Online Editor
Paris Junior College
Aikin Regional Archives
Paris, Texas

Profile
 
 
Posted: 04 March 2009 06:00 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  03-15-2008

Hi ParisJC,

As far as I know, the alternate content will show until the SWFObject javascript code has finished loading, not until the flash has (once the javascript has loaded, if the flash file is still loading you should see a blank flash player, not the alternate content - I think).

To improve this you may want to move the link to the SWFObject javascript file further up the page code if it isn’t already (up to before the closing </head> tag), however this may slow down the overall loading of your page.

 Signature 

@jpaylor

Profile
 
 
Posted: 05 March 2009 10:50 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  201
Joined  02-26-2005

Hey, Jonny. Thanks for the reply.

I moved the Javascript line up to the header, and that seems to have at least improved things. Haven’t tested in all browsers, but the alternate content isn’t showing now in Safari (Mac) as the Flash content loads.

Thanks for the tip!

 Signature 

Online Editor
Paris Junior College
Aikin Regional Archives
Paris, Texas

Profile