<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Problem in changing flash (swf) file location in embed or param tag using JavaScript</title>
	<atom:link href="http://viralpatel.net/blogs/2008/12/problem-in-changing-flash-swf-file-location-in-embaed-or-param-tag-using-javascript.html/feed" rel="self" type="application/rss+xml" />
	<link>http://viralpatel.net/blogs/2008/12/problem-in-changing-flash-swf-file-location-in-embaed-or-param-tag-using-javascript.html</link>
	<description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description>
	<lastBuildDate>Thu, 09 Sep 2010 03:50:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Patrik</title>
		<link>http://viralpatel.net/blogs/2008/12/problem-in-changing-flash-swf-file-location-in-embaed-or-param-tag-using-javascript.html/comment-page-1#comment-9739</link>
		<dc:creator>Patrik</dc:creator>
		<pubDate>Tue, 07 Jul 2009 12:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=381#comment-9739</guid>
		<description>This is a way to to it in non-IE browsers without replacing anything:
*note that I&#039;m using jQuery functions here but any js would work :)
&lt;pre name=&quot;code&quot; class=&quot;javascript&quot;&gt;

var flashObjectChildArray = [getObjectTag].children();
$(flashObjectChildArray ).each(function(i) {
	// if node contains the attribute name:movie
	if ($(flashObjectChildArray [i]).attr(&#039;name&#039;) == &#039;movie&#039;) {
		$(flashObjectChildArray [i]).attr(&#039;value&#039;, [urlToYourNewFlashFile]);
	}
	// if node is an embed tag
	if (flashObjectChildArray [i].tagName.toLowerCase() == &#039;embed&#039;) {
		$(flashObjectChildArray [i]).attr(&#039;src&#039;, [urlToYourNewFlashFile]);
	}
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is a way to to it in non-IE browsers without replacing anything:<br />
*note that I&#8217;m using jQuery functions here but any js would work :)</p>
<pre name="code" class="javascript">

var flashObjectChildArray = [getObjectTag].children();
$(flashObjectChildArray ).each(function(i) {
	// if node contains the attribute name:movie
	if ($(flashObjectChildArray [i]).attr('name') == 'movie') {
		$(flashObjectChildArray [i]).attr('value', [urlToYourNewFlashFile]);
	}
	// if node is an embed tag
	if (flashObjectChildArray [i].tagName.toLowerCase() == 'embed') {
		$(flashObjectChildArray [i]).attr('src', [urlToYourNewFlashFile]);
	}
});
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
