<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Web standards compliant Javascript Flash detect and embed</title>
	<atom:link href="http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/</link>
	<description>You've got your good thing, and I've got mine</description>
	<pubDate>Sun, 11 May 2008 23:40:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2436</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Thu, 31 Mar 2005 22:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2436</guid>
		<description>I've just &lt;a href="http://blog.deconcept.com/2005/03/31/proper-flash-embedding-flashobject-best-practices/"&gt;posted the new version&lt;/a&gt; of the FlashObject embed (v1.1) go check it out.


The comments for this post are now closed, please post new FlashObject comments there.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just <a href="http://blog.deconcept.com/2005/03/31/proper-flash-embedding-flashobject-best-practices/">posted the new version</a> of the FlashObject embed (v1.1) go check it out.</p>
<p>The comments for this post are now closed, please post new FlashObject comments there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrisgee</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2433</link>
		<dc:creator>chrisgee</dc:creator>
		<pubDate>Thu, 31 Mar 2005 21:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2433</guid>
		<description>Geoff, 

Yes, I'm VERY interested in your new FlashObject script. Not to hurry you or anything but when do ya think you'll have it done?  ;-)</description>
		<content:encoded><![CDATA[<p>Geoff, </p>
<p>Yes, I&#8217;m VERY interested in your new FlashObject script. Not to hurry you or anything but when do ya think you&#8217;ll have it done?  ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2431</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Thu, 31 Mar 2005 17:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2431</guid>
		<description>Dave,

Thanks, I'm currently rewriting the script, so I'll add that into the new version.

chrisgee,
It looks fine to me in firefox on osx. You may be interested in the new version of the FlashObject script i'm working on - the new version will not write alt content by default, and it will replace your html on the page, so you don't need the &lt;code&gt;noscript&lt;/code&gt; tags any more - the flash will just replace your alt content.</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Thanks, I&#8217;m currently rewriting the script, so I&#8217;ll add that into the new version.</p>
<p>chrisgee,<br />
It looks fine to me in firefox on osx. You may be interested in the new version of the FlashObject script i&#8217;m working on - the new version will not write alt content by default, and it will replace your html on the page, so you don&#8217;t need the <code>noscript</code> tags any more - the flash will just replace your alt content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrisgee</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2430</link>
		<dc:creator>chrisgee</dc:creator>
		<pubDate>Thu, 31 Mar 2005 04:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2430</guid>
		<description>Here's a question. I have tried this method and it works great. However, what I'm attempting to do is have the "noscript" section for users without Flash, display a normal div tag with an unordered list and title header. 

Here is the link to my file. http://www.cube-interactive.com/new_site/test/about2.html

What am I doing wrong? 

Thanks!</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a question. I have tried this method and it works great. However, what I&#8217;m attempting to do is have the &#8220;noscript&#8221; section for users without Flash, display a normal div tag with an unordered list and title header. </p>
<p>Here is the link to my file. <a href="http://www.cube-interactive.com/new_site/test/about2.html" rel="nofollow">http://www.cube-interactive.com/new_site/test/about2.html</a></p>
<p>What am I doing wrong? </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Benjamin</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2429</link>
		<dc:creator>Dave Benjamin</dc:creator>
		<pubDate>Wed, 30 Mar 2005 20:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2429</guid>
		<description>I use FireFox's strict JavaScript checking (about:config-&gt;javascript.options.strict=true), and it gives a warning for the line "FlashObject = function(swf, id, w, h, ver, c) {" that says "FlashObject" might not have been initialized. I added "var" to the beginning of that line, and the warning went away. You may want to do the same. Granted, FireFox is being a bit paranoid here, but I like to suppress unnecessary warnings as much as possible because sometimes FireFox does find real bugs this way.

Nice implementation! Thanks for putting this out.</description>
		<content:encoded><![CDATA[<p>I use FireFox&#8217;s strict JavaScript checking (about:config->javascript.options.strict=true), and it gives a warning for the line &#8220;FlashObject = function(swf, id, w, h, ver, c) {&#8221; that says &#8220;FlashObject&#8221; might not have been initialized. I added &#8220;var&#8221; to the beginning of that line, and the warning went away. You may want to do the same. Granted, FireFox is being a bit paranoid here, but I like to suppress unnecessary warnings as much as possible because sometimes FireFox does find real bugs this way.</p>
<p>Nice implementation! Thanks for putting this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snaptography.com</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2425</link>
		<dc:creator>snaptography.com</dc:creator>
		<pubDate>Wed, 30 Mar 2005 02:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2425</guid>
		<description>&lt;strong&gt;Flash and Web Standards, Simultaneously! &lt;/strong&gt;
Macromedia Flash and Web Standards are two words that I would never think to hear together...that is for certain. Fortunately I found several links that discuss various ways to have valid XHTML and CSS standards, while also still using Macromedia Flash...</description>
		<content:encoded><![CDATA[<p><strong>Flash and Web Standards, Simultaneously! </strong><br />
Macromedia Flash and Web Standards are two words that I would never think to hear together&#8230;that is for certain. Fortunately I found several links that discuss various ways to have valid XHTML and CSS standards, while also still using Macromedia Flash&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2403</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Fri, 25 Mar 2005 22:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2403</guid>
		<description>But yours requires extra xml files, doesn't include plugin detection, and Safari will still not see all the parameters passed in, like bgcolor (you have to re-publish your swf file if you change the bg color) and the right click menu - it will always show the menu in Safari.</description>
		<content:encoded><![CDATA[<p>But yours requires extra xml files, doesn&#8217;t include plugin detection, and Safari will still not see all the parameters passed in, like bgcolor (you have to re-publish your swf file if you change the bg color) and the right click menu - it will always show the menu in Safari.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo Balocco</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2402</link>
		<dc:creator>Matteo Balocco</dc:creator>
		<pubDate>Fri, 25 Mar 2005 22:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2402</guid>
		<description>Geoff said:
Also keep in mind that every other XHTML valid method of embedding Flash that I have seen other than using JS (aside from the one that requires the extra XML file for each Flash movie) will not work 100% in Safari since it will ignore the param tags.

Matteo:
And remember... my TFL works fine also with js disabled! No work-arounds needed...</description>
		<content:encoded><![CDATA[<p>Geoff said:<br />
Also keep in mind that every other XHTML valid method of embedding Flash that I have seen other than using JS (aside from the one that requires the extra XML file for each Flash movie) will not work 100% in Safari since it will ignore the param tags.</p>
<p>Matteo:<br />
And remember&#8230; my TFL works fine also with js disabled! No work-arounds needed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sara B</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2393</link>
		<dc:creator>Sara B</dc:creator>
		<pubDate>Tue, 22 Mar 2005 15:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2393</guid>
		<description>Great script :)

Instead of a text warning can an image be used as a replacement?

Thanks</description>
		<content:encoded><![CDATA[<p>Great script :)</p>
<p>Instead of a text warning can an image be used as a replacement?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2018</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Thu, 03 Mar 2005 16:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2018</guid>
		<description>Yes, &lt;code&gt;addVariable&lt;/code&gt; passes the vars into the Flash movie using FlashVars, so it works the same as passing them in the query string, only you aren't limited by URL string lengths in some browsers.

It would look like this:

&lt;code&gt;myFlashObject.addVariable("varname", "value");&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Yes, <code>addVariable</code> passes the vars into the Flash movie using FlashVars, so it works the same as passing them in the query string, only you aren&#8217;t limited by URL string lengths in some browsers.</p>
<p>It would look like this:</p>
<p><code>myFlashObject.addVariable("varname", "value");</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2017</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Thu, 03 Mar 2005 16:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2017</guid>
		<description>if i wanted to pass a variable to the swf that would display the section of the swf according to the page (normally like blah.swf?section=home) i need to use addVariable, correct? i've tried doing this with both addVariable and addParam and i can't get either to work. i'm a javascript noob and apparently not fully understanding how to accomplish this.</description>
		<content:encoded><![CDATA[<p>if i wanted to pass a variable to the swf that would display the section of the swf according to the page (normally like blah.swf?section=home) i need to use addVariable, correct? i&#8217;ve tried doing this with both addVariable and addParam and i can&#8217;t get either to work. i&#8217;m a javascript noob and apparently not fully understanding how to accomplish this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stark</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2015</link>
		<dc:creator>Stark</dc:creator>
		<pubDate>Thu, 03 Mar 2005 13:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-2015</guid>
		<description>I cannot begin to thank you enough! Mac compliancy is the bane of my mortal existence, and scripts like these at lease alleviate some of that.

You are a Saint!!!</description>
		<content:encoded><![CDATA[<p>I cannot begin to thank you enough! Mac compliancy is the bane of my mortal existence, and scripts like these at lease alleviate some of that.</p>
<p>You are a Saint!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1815</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Tue, 22 Feb 2005 15:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1815</guid>
		<description>Cool, thanks for posting that. It looks like the Safari screen grab isn't showing the Flash or the upgrade message, but I just double checked and it does work in Safari too. I wonder if it's a bug in how Browsercam takes the screen grabs.</description>
		<content:encoded><![CDATA[<p>Cool, thanks for posting that. It looks like the Safari screen grab isn&#8217;t showing the Flash or the upgrade message, but I just double checked and it does work in Safari too. I wonder if it&#8217;s a bug in how Browsercam takes the screen grabs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ingsoc</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1814</link>
		<dc:creator>ingsoc</dc:creator>
		<pubDate>Tue, 22 Feb 2005 14:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1814</guid>
		<description>You've got a good ratio of systems that work with this, according to &lt;a href = "http://www.browsercam.com/public.aspx?proj_id=140833"&gt; Browsercam&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>You&#8217;ve got a good ratio of systems that work with this, according to <a href = "http://www.browsercam.com/public.aspx?proj_id=140833"> Browsercam</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1677</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Wed, 16 Feb 2005 05:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1677</guid>
		<description>What I've been doing to get around the "JS Disabled" problem, is:

Create your content as if your Flash content is all plain images the same size your Flash movie is (or &lt;code&gt;div&lt;/code&gt;s sized the same size as the Flash content. Then use the FlashObject code to replace that content. This way you don't need &lt;code&gt;noscript&lt;/code&gt; tags at all - since your content is there to begin with, if they have js disabled the page will display as intended.

I've been planning a little tutorial on best pratices from what I've learned from impelmenting this embed method on a few high traffic websites - &lt;a href="http://www.snapple.com/" rel="external"&gt;snapple.com&lt;/a&gt; and the &lt;a href="http://www.vw.com/jetta/a5/" rel="external"&gt;new Jetta mini site&lt;/a&gt; included (It has worked out great and really stands up to the test of high traffic websites).

Also keep in mind that every other XHTML valid method of embedding Flash that I have seen other than using JS (aside from the one that requires the extra XML file for each Flash movie) will not work 100% in Safari since it will ignore the &lt;code&gt;param&lt;/code&gt; tags.</description>
		<content:encoded><![CDATA[<p>What I&#8217;ve been doing to get around the &#8220;JS Disabled&#8221; problem, is:</p>
<p>Create your content as if your Flash content is all plain images the same size your Flash movie is (or <code>div</code>s sized the same size as the Flash content. Then use the FlashObject code to replace that content. This way you don&#8217;t need <code>noscript</code> tags at all - since your content is there to begin with, if they have js disabled the page will display as intended.</p>
<p>I&#8217;ve been planning a little tutorial on best pratices from what I&#8217;ve learned from impelmenting this embed method on a few high traffic websites - <a href="http://www.snapple.com/" rel="external">snapple.com</a> and the <a href="http://www.vw.com/jetta/a5/" rel="external">new Jetta mini site</a> included (It has worked out great and really stands up to the test of high traffic websites).</p>
<p>Also keep in mind that every other XHTML valid method of embedding Flash that I have seen other than using JS (aside from the one that requires the extra XML file for each Flash movie) will not work 100% in Safari since it will ignore the <code>param</code> tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Silvester</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1676</link>
		<dc:creator>Dave Silvester</dc:creator>
		<pubDate>Wed, 16 Feb 2005 01:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1676</guid>
		<description>I've seen a few criticisms elsewhere of your method because it doesn't work with JavaScript disabled.

So, to solve the issue of JavaScript being disabled, it's quite simple (and valid XHTML) to include &lt;b&gt;noscript&lt;/b&gt; tags also containing the replacement content, therefore catering for &lt;em&gt;nearly&lt;/em&gt; all possible combinations of Flash, No Flash, and JavaScript.

The only situation it doesn't cater for is Flash installed but JavaScript disabled, although if you really wanted to, you could combine the noscript tags with &lt;a href="http://www.ambience.sk/flash-valid.htm"&gt;this method&lt;/a&gt;, although the combination of all this stuff is veering off quite wildly into bloat territory, and I haven't actually tested it to be sure it would work as intended.

"Horses for courses", as the saying goes, and I still don't believe there is a 100% satisfactory solution available for this problem, although yours is the best I've seen so far.

Since my current project only has non-essential Flash animations with replacement static images for when Flash isn't present, I'm using your method here combined with some noscript tags and the replacement content also in the noscript tags, as that covers enough bases without as much bloat.

Thanks for your work, it's good stuff!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen a few criticisms elsewhere of your method because it doesn&#8217;t work with JavaScript disabled.</p>
<p>So, to solve the issue of JavaScript being disabled, it&#8217;s quite simple (and valid XHTML) to include <b>noscript</b> tags also containing the replacement content, therefore catering for <em>nearly</em> all possible combinations of Flash, No Flash, and JavaScript.</p>
<p>The only situation it doesn&#8217;t cater for is Flash installed but JavaScript disabled, although if you really wanted to, you could combine the noscript tags with <a href="http://www.ambience.sk/flash-valid.htm">this method</a>, although the combination of all this stuff is veering off quite wildly into bloat territory, and I haven&#8217;t actually tested it to be sure it would work as intended.</p>
<p>&#8220;Horses for courses&#8221;, as the saying goes, and I still don&#8217;t believe there is a 100% satisfactory solution available for this problem, although yours is the best I&#8217;ve seen so far.</p>
<p>Since my current project only has non-essential Flash animations with replacement static images for when Flash isn&#8217;t present, I&#8217;m using your method here combined with some noscript tags and the replacement content also in the noscript tags, as that covers enough bases without as much bloat.</p>
<p>Thanks for your work, it&#8217;s good stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1672</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Tue, 15 Feb 2005 20:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1672</guid>
		<description>Interesting, I'll patch that up soon. Thanks for pointing it out. I wonder if the same thing happens on other platforms and why nobody has seen that yet - does firefox come with any plugins installed by default on platforms other than linux?</description>
		<content:encoded><![CDATA[<p>Interesting, I&#8217;ll patch that up soon. Thanks for pointing it out. I wonder if the same thing happens on other platforms and why nobody has seen that yet - does firefox come with any plugins installed by default on platforms other than linux?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Lovett</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1671</link>
		<dc:creator>Bill Lovett</dc:creator>
		<pubDate>Tue, 15 Feb 2005 20:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1671</guid>
		<description>I noticed that the detection wasn't working quite right on a linux version of Firefox with no plugins installed. It threw an error about execScript not being a valid function (line 148, in the getFlashVersion function). It turns out that the test for navigator.plugins &#038;&#038; navigator.plugins.length a few lines up was returning false because the length was zero, and so  it ended up in the IE branch of that function. Might want to consider dropping the check for plugins.length, or maybe test it as a boolean using ===.</description>
		<content:encoded><![CDATA[<p>I noticed that the detection wasn&#8217;t working quite right on a linux version of Firefox with no plugins installed. It threw an error about execScript not being a valid function (line 148, in the getFlashVersion function). It turns out that the test for navigator.plugins &#038;&#038; navigator.plugins.length a few lines up was returning false because the length was zero, and so  it ended up in the IE branch of that function. Might want to consider dropping the check for plugins.length, or maybe test it as a boolean using ===.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Judge</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1628</link>
		<dc:creator>Dan Judge</dc:creator>
		<pubDate>Fri, 11 Feb 2005 21:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1628</guid>
		<description>Damian 

I was having a similar problem  with loading a jpg in the lower div layer and loading Flash with the OnLoad function in a higher div layer and I was getting the momentary flicker as Flash loaded. In my case I simply put the jpg in the higher level layer and loaded Flash below it. In frame two of my Flash I use GetURL to call a Javascript function that changes the style attribute of the top layer to 'hidden'. Presto clean loading Flash. This might also work for you.

Geoff:

Do you know if this line of code is relatively multi-browser usable:
ImageTable.style.backgroundImage='url(JWST-Pre.jpg)';
This works In IE but I am not sure about other browsers.

Is there any way to replace the 'URL(JWST-Pre.jpg)' with a variable?
I have  searched everywhere for an answer to that question to no avail.

I am using a Javascript array to select the specific image to load into the layer background by utilizing the above 'style' method while the page is initially loading so I have it displaying while the page finishes loading and Flash loads in the layer below at onload.

Also, since I already have a jpg in place above the Flash layer is it possible to simply turn off the Flash detect so if Flash fails the jpg simply stays in place with no interuption or notification to the viewer?

Cheers</description>
		<content:encoded><![CDATA[<p>Damian </p>
<p>I was having a similar problem  with loading a jpg in the lower div layer and loading Flash with the OnLoad function in a higher div layer and I was getting the momentary flicker as Flash loaded. In my case I simply put the jpg in the higher level layer and loaded Flash below it. In frame two of my Flash I use GetURL to call a Javascript function that changes the style attribute of the top layer to &#8216;hidden&#8217;. Presto clean loading Flash. This might also work for you.</p>
<p>Geoff:</p>
<p>Do you know if this line of code is relatively multi-browser usable:<br />
ImageTable.style.backgroundImage=&#8217;url(JWST-Pre.jpg)&#8217;;<br />
This works In IE but I am not sure about other browsers.</p>
<p>Is there any way to replace the &#8216;URL(JWST-Pre.jpg)&#8217; with a variable?<br />
I have  searched everywhere for an answer to that question to no avail.</p>
<p>I am using a Javascript array to select the specific image to load into the layer background by utilizing the above &#8217;style&#8217; method while the page is initially loading so I have it displaying while the page finishes loading and Flash loads in the layer below at onload.</p>
<p>Also, since I already have a jpg in place above the Flash layer is it possible to simply turn off the Flash detect so if Flash fails the jpg simply stays in place with no interuption or notification to the viewer?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian Atwill</title>
		<link>http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1618</link>
		<dc:creator>Damian Atwill</dc:creator>
		<pubDate>Thu, 10 Feb 2005 23:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.deconcept.com/2004/10/14/web-standards-compliant-javascript-flash-detect-and-embed/#comment-1618</guid>
		<description>Geoff &#038; Dan

Solved the issue with IE6 not swapping movies. Not sure why it does it, might be something to do with relative pathing in IE. My solution was to take the code out of flash and place in the HTML page. Flash then calls this function still using getURL("javascript:newContent('"+urlLink+"');") passing it the URL required that is stored in 'urlLink'.

The html code turned out as follows:

&lt;blockquote&gt;&lt;code&gt;&#60;script type="text/javascript"&#62;
   // &#60;![CDATA[
   var bodyFlashObject = new FlashObject("flash/madianGraphicsHomePage.swf", "siteBody", "756", "701", 7, "#BCB9AE");
   bodyFlashObject.addParam("menu", "false");
   bodyFlashObject.write('flashBody');
   // ]]&#62;
   newContent = function(myContent) {
      // &#60;![CDATA[
      var bodyFlashObject = new FlashObject(myContent, "siteBody", "756", "701", 7, "#BCB9AE");
      bodyFlashObject.addParam("menu", "false");
      bodyFlashObject.write("flashBody");
      // ]]&#62;
      }
&#60;/script&#62;&lt;/code&gt;&lt;/blockquote&gt;

Only one small annoyance, IE gives a flicker of white when the flash movie changes. All other browsers are seamless with the transition. Can't have everything hay.

So now you can change flash movies without using loadMovies(), using frames or iFrames (thanks for the idea but Geoff) or having to manually refresh the page.

For those who want to see this in effect visit www.madiangraphics.com/v2.0/    This site is under construction and will eventually move to the www.madiangraphics.com</description>
		<content:encoded><![CDATA[<p>Geoff &#038; Dan</p>
<p>Solved the issue with IE6 not swapping movies. Not sure why it does it, might be something to do with relative pathing in IE. My solution was to take the code out of flash and place in the HTML page. Flash then calls this function still using getURL(&#8221;javascript:newContent(&#8217;&#8221;+urlLink+&#8221;&#8216;);&#8221;) passing it the URL required that is stored in &#8216;urlLink&#8217;.</p>
<p>The html code turned out as follows:</p>
<blockquote><p><code>&lt;script type="text/javascript"&gt;<br />
   // &lt;![CDATA[<br />
   var bodyFlashObject = new FlashObject("flash/madianGraphicsHomePage.swf", "siteBody", "756", "701", 7, "#BCB9AE");<br />
   bodyFlashObject.addParam("menu", "false");<br />
   bodyFlashObject.write('flashBody');<br />
   // ]]&gt;<br />
   newContent = function(myContent) {<br />
      // &lt;![CDATA[<br />
      var bodyFlashObject = new FlashObject(myContent, "siteBody", "756", "701", 7, "#BCB9AE");<br />
      bodyFlashObject.addParam("menu", "false");<br />
      bodyFlashObject.write("flashBody");<br />
      // ]]&gt;<br />
      }<br />
&lt;/script&gt;</code></p></blockquote>
<p>Only one small annoyance, IE gives a flicker of white when the flash movie changes. All other browsers are seamless with the transition. Can&#8217;t have everything hay.</p>
<p>So now you can change flash movies without using loadMovies(), using frames or iFrames (thanks for the idea but Geoff) or having to manually refresh the page.</p>
<p>For those who want to see this in effect visit <a href="http://www.madiangraphics.com/v2.0/" rel="nofollow">http://www.madiangraphics.com/v2.0/</a>    This site is under construction and will eventually move to the <a href="http://www.madiangraphics.com" rel="nofollow">http://www.madiangraphics.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
