Nick. You have already defined wmode=transparent which should remove the standard background color in the Flash file. I am unsure what else is in your swf in regards to artwork which might be showing the white color. A preloader will help to ensure you are showing what you want to the user when the content is loading.
Also, I would reverse the code definition order to define the loadFlash() function before you call swfobject.addLoadEvent(loadFlash). It is good practice to define the functions you are going to call before you are calling them to ensure they are available... Aran -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Nick Sent: Tuesday, 14 April 2009 11:34 PM To: SWFObject Subject: Re: polite downloading Thanks for your quick reply Aran It's my first time using SWFObject 2, but I got there in the end. Here is my javascript code that facilitates the polite loading: <script type="text/javascript"> swfobject.addLoadEvent(loadFlash);//the function that puts the polite load on var flashvars = {}; var params = {}; params.quality = "best"; params.wmode = "transparent"; var attributes = {}; attributes.id = "home"; function loadFlash() { //The regular swf object function nestled in the polite load function swfobject.embedSWF("flash/home.swf", "flash_home", "979", "366", "6.0.0", "flash/expressInstall.swf", flashvars, params, attributes); } </script> I do have 1 final question - when all the page assets are loading, the flash is represented as a big white block. Does anyone know if it is possible to make this transparent during the polite load? Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
