<?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: Replace Function for ActionScript 2.0</title>
	<atom:link href="http://www.sumitgupta.net/replace-function-for-actionscript-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sumitgupta.net/replace-function-for-actionscript-20/</link>
	<description>bookmarking my life</description>
	<lastBuildDate>Fri, 20 Jan 2012 10:28:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alex</title>
		<link>http://www.sumitgupta.net/replace-function-for-actionscript-20/comment-page-1/#comment-1071</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 05 Aug 2010 01:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sumitgupta.net/?p=257#comment-1071</guid>
		<description>Hi,

It seems an interesting function.  It would be wonderful if you also have the ActionScript 3 version.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It seems an interesting function.  It would be wonderful if you also have the ActionScript 3 version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.sumitgupta.net/replace-function-for-actionscript-20/comment-page-1/#comment-308</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 09 Aug 2009 14:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.sumitgupta.net/?p=257#comment-308</guid>
		<description>Did you try to trace txtAddress.text .. did it print anything?

in flash at time you miss the scope. IF it trace then my next bet is that declare the function in your parent Movie clip of your button or atleast declare it just above the 

var addr=searchAndReplace(...); stuff.</description>
		<content:encoded><![CDATA[<p>Did you try to trace txtAddress.text .. did it print anything?</p>
<p>in flash at time you miss the scope. IF it trace then my next bet is that declare the function in your parent Movie clip of your button or atleast declare it just above the </p>
<p>var addr=searchAndReplace(&#8230;); stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dev</title>
		<link>http://www.sumitgupta.net/replace-function-for-actionscript-20/comment-page-1/#comment-304</link>
		<dc:creator>dev</dc:creator>
		<pubDate>Thu, 06 Aug 2009 13:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sumitgupta.net/?p=257#comment-304</guid>
		<description>This function is not working for me.
I used this function but its not replacing any character.
Please check it :
on(release)
{
var addr =searchAndReplace(txtAddress.text,&quot;\n&quot;,&quot;&#124;&quot;);
function searchAndReplace(holder, searchfor, replacement) {
 temparray = holder.split(searchfor);
 holder = temparray.join(replacement);
 return (holder);
}
}</description>
		<content:encoded><![CDATA[<p>This function is not working for me.<br />
I used this function but its not replacing any character.<br />
Please check it :<br />
on(release)<br />
{<br />
var addr =searchAndReplace(txtAddress.text,&#8221;\n&#8221;,&#8221;|&#8221;);<br />
function searchAndReplace(holder, searchfor, replacement) {<br />
 temparray = holder.split(searchfor);<br />
 holder = temparray.join(replacement);<br />
 return (holder);<br />
}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

