Another drawback: (that might be problematic in some cases). This technique has the "double run" problem. I mean, the flash movie might start running, before the javascript had a change to do its magic of "replacing it". Depending on what the flash movie is doing and timing, the result might do a "sudden blink".
I didn't do extensive testing, but I suspect it might impact the load time of the page since loading a flash movie in IE always seems to "hangs" the browser for a split second. (depending on the complexity of the flash movie) - so the "hanging time" would be doubled presumably. I want to point out that this technique is not 100% bad. It is actually one of the best bang-for-the-buck for existing pages. (unlike the FlashObject which requires much more changes). It is great for many cases - it is a brute-force, extremely low-cost method. B. 2006/4/20, Bernard Poulin <[EMAIL PROTECTED]>: > > Yes absolutely. > > http://www.unfocus.com/projects/PatentMagic/ > > In this example, at least on my machine, it drops the "flashvars" for the > <object> (<embed> is fine). > > You can see for yourself if you carefully read the alert box text: the > <embed> tag has its flashvars but the <object> does not have it (value is an > empty string). > > B. > > > 2006/4/20, Geoff Stearns <[EMAIL PROTECTED]>: > > > doesn't this method break flashvars and other params? > > > > > > > > On Apr 20, 2006, at 1:23 PM, Kevin Newman wrote: > > > > > I didn't want to have to redefine all the stuff that has already > > > been defined in the html object. So I made this: :-) > > > > > > http://www.unfocus.com/projects/PatentMagic/ > > > > > > A super tiny js file include and a stylesheet takes care of all > > > object activation. It's a bit brute force, but it should get the > > > job done if you are looking for a quick fix and are using static > > > embedded html. If anyone has any ideas on how to make this more > > > robust, please let me know. :-) > > > > > > > > > Kevin N. > > > > > > > > > Geoff Stearns wrote: > > >> you could do this with flashobject really easily. > > >> > > >> just call fo.write() whenever you want and it will replace the > > >> object you target with your flash movie. > > >> > > >> > > >> > > >> On Apr 20, 2006, at 11:04 AM, Kevin Newman wrote: > > >> > > >>> I prefer solutions that try to hide IE's lack of conformity, like > > >>> Dean Edwards's IE 7 script: > > >>> http://dean.edwards.name/IE7/ > > >>> > > >>> There are just too many installations to realistically ignore them. > > >>> > > >>> Speaking of hacking on IE, is there a way to prevent an object > > >>> from loading? By that I mean, I want to use Object tags to embed > > >>> a Swf, but I don't want it to download or load in the background > > >>> until I tell it to via a script interaction (vbscript or > > >>> javascript). Will hiding it via css do the trick, or will I need > > >>> to take further steps to keep it from loading? > > >>> > > >>> Thanks, > > >>> > > >>> Kevin N. > > >>> > > > > > > > > > _______________________________________________ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com