Hi, New to swfobj, I have a project where I need to change page content with innerHTML, one of the content items swapped in is a swf. I used to use
'<object ' + 'CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + 'width="100%" ' + 'height="100%" ' + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab" id=movie_obj> ' + .... and all was well, except for IE8. So swfobj was suggested :) In my index.html I have ... ... <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> swfobject.registerObject("movie_obj", "9.0.0", "expressInstall.swf"); </script> </head> And my swapped in HTML via innerHTML ... '<div>' + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="movie_obj">' + '<param name="movie" value="' + name + '" />' + '<!--[if !IE]>-->' + '<object type="application/x-shockwave-flash" data="' + name + '" width="800" height="600">' + '<!--<![endif]-->' + '<a href="http://www.adobe.com/go/getflashplayer">' + '<img src="http://www.adobe.com/images/shared/download_buttons/ get_flash_player.gif" alt="Get Adobe Flash player" />' + '</a>' + '<!--[if !IE]>-->' + '</object>' + '<!--<![endif]-->' + '</object>' + '</div>' >From the auto code generator, when executed I get a 800 x 600 block (well scroll bars) and nothing playing. I am concerned that I have ... swfobject.registerObject("movie_obj", "9.0.0", "expressInstall.swf"); in the <head> before 'movie_obj' has been 'swapped in. Any advice greatly appreciated Cheers Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
