<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; replace string</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/replace-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flash string search replace using prototype</title>
		<link>http://newsourcemedia.com/blog/flash-string-search-replace-using-prototype/</link>
		<comments>http://newsourcemedia.com/blog/flash-string-search-replace-using-prototype/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 20:04:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Prototypes]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[custom proto type]]></category>
		<category><![CDATA[pattern.]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[replace string]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=497</guid>
		<description><![CDATA[How to preform a string search and replace in flash using actionscript prototype A prototype to replace a pattern in a string String.prototype.replace = function(pattern, replacement) { return this.split(pattern).join(replacement); } To use the prototype var str = "hello world"; var &#8230; <a href="http://newsourcemedia.com/blog/flash-string-search-replace-using-prototype/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to preform a string search and replace in flash using actionscript prototype
<span id="more-497"></span>A prototype to replace a pattern in a string
<pre lang="actionscript">String.prototype.replace = function(pattern, replacement) {
return this.split(pattern).join(replacement);
}</pre>
To use the prototype
<pre lang="actionscript">var str = "hello world";
var newstr = str.replace("world", "Earth");
trace(newstr);</pre>
This will output: Hello Earth]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/flash-string-search-replace-using-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
