<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.2" -->
<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/"
	>

<channel>
	<title>labs.gerbenrobijn.nl &#187; Actionscript 2</title>
	<link>http://labs.gerbenrobijn.nl</link>
	<description>Flash Gordon: Now that I'm on your side, can I have my stun gun back? I feel almost naked without it.</description>
	<pubDate>Wed, 22 Jun 2011 06:27:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>FITC Amsterdam Sold Out</title>
		<link>http://labs.gerbenrobijn.nl/2008/02/12/fitc-amsterdam-sold-out/</link>
		<comments>http://labs.gerbenrobijn.nl/2008/02/12/fitc-amsterdam-sold-out/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 09:08:35 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/2008/02/12/fitc-amsterdam-sold-out/</guid>
		<description><![CDATA[Two weeks in advance of its European debut, FITC has sold out its event in Amsterdam. FITC Amsterdam is scheduled for February 25 + February 26, 2008 at the Felix Meritis European Centre for Arts and Sciences. This is the first time that FITC, now in its seventh year, has ventured outside North America.
“Amsterdam has [...]]]></description>
			<content:encoded><![CDATA[<p>Two weeks in advance of its European debut, FITC has sold out its event in Amsterdam. FITC Amsterdam is scheduled for February 25 + February 26, 2008 at the Felix Meritis European Centre for Arts and Sciences. This is the first time that FITC, now in its seventh year, has ventured outside North America.</p>
<p>“Amsterdam has a reputation as a place for cool technology and hot design, which is one of the reasons why we chose it for our European debut,” says Shawn Pucknell, Founder of FITC and Executive Producer of FITC Amsterdam. “Now that the event has sold out well in advance, we’re confident in the choice we made.”<br />
 <a href="http://labs.gerbenrobijn.nl/2008/02/12/fitc-amsterdam-sold-out/#more-35" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2008/02/12/fitc-amsterdam-sold-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Review: ServiceCapture</title>
		<link>http://labs.gerbenrobijn.nl/2008/02/05/review-servicecapture/</link>
		<comments>http://labs.gerbenrobijn.nl/2008/02/05/review-servicecapture/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 22:14:24 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[connection]]></category>

		<category><![CDATA[debugger]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[servicecapture]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/2008/02/05/review-servicecapture/</guid>
		<description><![CDATA[I have been developing RIA applications for quit some years now and ever since i&#8217;ve been looking for a good connection debugger. I&#8217;ve tried a couple including the netconnection debugger from adobe and Charles but the one who worked best for me was ServiceCapture. 
]]></description>
			<content:encoded><![CDATA[<p>I have been developing RIA applications for quit some years now and ever since i&#8217;ve been looking for a good connection debugger. I&#8217;ve tried a couple including the netconnection debugger from adobe and <a href="http://www.xk72.com/charles/" target="_blank">Charles</a> but the one who worked best for me was <a href="http://www.kevinlangdon.com/serviceCapture/" target="_blank">ServiceCapture</a>.<br />
 <a href="http://labs.gerbenrobijn.nl/2008/02/05/review-servicecapture/#more-34" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2008/02/05/review-servicecapture/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flex doubleclick problem pen tablet</title>
		<link>http://labs.gerbenrobijn.nl/2008/01/22/flex-doubleclick-problem-pen-tablet/</link>
		<comments>http://labs.gerbenrobijn.nl/2008/01/22/flex-doubleclick-problem-pen-tablet/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 20:04:42 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[doubleclick]]></category>

		<category><![CDATA[mouse]]></category>

		<category><![CDATA[pen]]></category>

		<category><![CDATA[problem]]></category>

		<category><![CDATA[tablet]]></category>

		<category><![CDATA[wacom]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/2008/01/22/flex-doubleclick-problem-pen-tablet/</guid>
		<description><![CDATA[Because of some wrist strain I started out using a wacom pen tablet. It works perfect for me but I&#8217;m experiencing some problems with using it in flex. 
It seems that the doubleclick event requires a very steady hand, because it handles it on one pixel so it seems. I&#8217;m not that steady:) 
]]></description>
			<content:encoded><![CDATA[<p>Because of some wrist strain I started out using a wacom pen tablet. It works perfect for me but I&#8217;m experiencing some problems with using it in flex. </p>
<p>It seems that the doubleclick event requires a very steady hand, because it handles it on one pixel so it seems. I&#8217;m not that steady:)<br />
 <a href="http://labs.gerbenrobijn.nl/2008/01/22/flex-doubleclick-problem-pen-tablet/#more-32" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2008/01/22/flex-doubleclick-problem-pen-tablet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FITC Amsterdam 25% discount</title>
		<link>http://labs.gerbenrobijn.nl/2008/01/03/fitc-amsterdam-25-discount/</link>
		<comments>http://labs.gerbenrobijn.nl/2008/01/03/fitc-amsterdam-25-discount/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 22:53:11 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Programs]]></category>

		<category><![CDATA[25%]]></category>

		<category><![CDATA[Discount]]></category>

		<category><![CDATA[Event]]></category>

		<category><![CDATA[FITC]]></category>

		<category><![CDATA[Flash in the Can]]></category>

		<category><![CDATA[korting]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/2008/01/03/fitc-amsterdam-25-discount/</guid>
		<description><![CDATA[On the 25 and 26 of Februari it&#8217;s time for Flash in the Can to visit Europe for the first time in their history.
And we the dutch have the honour to host this great event in Amsterdam!
]]></description>
			<content:encoded><![CDATA[<p>On the 25 and 26 of Februari it&#8217;s time for Flash in the Can to visit Europe for the first time in their history.<br />
And we the dutch have the honour to host this great event in Amsterdam!</p>
<p> <a href="http://labs.gerbenrobijn.nl/2008/01/03/fitc-amsterdam-25-discount/#more-31" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2008/01/03/fitc-amsterdam-25-discount/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dutch Adobe user group: 10-10-2007 interactive video</title>
		<link>http://labs.gerbenrobijn.nl/2007/10/10/dutch-adobe-user-group-10-10-2007-interactive-video/</link>
		<comments>http://labs.gerbenrobijn.nl/2007/10/10/dutch-adobe-user-group-10-10-2007-interactive-video/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 19:58:25 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[After Effects]]></category>

		<category><![CDATA[Final Cut Pro]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Movie]]></category>

		<category><![CDATA[Premiere]]></category>

		<category><![CDATA[Sound]]></category>

		<category><![CDATA[Video]]></category>

		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/2007/10/10/dutch-adobe-user-group-10-10-2007-interactive-video/</guid>
		<description><![CDATA[Today I went to the Dutch adobe user group meeting in Amsterdam. It was all about interactive video and stuff that has to do with it. A very interesting meeting and especially in the end an inspiring meeting. Before the break it was more a company commercial for NetMaster by Mark de Jong. It&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p>Today I went to the <a href="http://www.adobeusergroup.nl/">Dutch adobe user group</a> meeting in Amsterdam. It was all about interactive video and stuff that has to do with it. A very interesting meeting and especially in the end an inspiring meeting. Before the break it was more a company commercial for NetMaster by Mark de Jong. It&#8217;s not really what I found necessary on this meeting. If I wanted this information I go look for it on the web. But never the less probably a good company for streaming servers and more. <a href="http://www.waldosmeets.com/">Waldo Smeets</a> was also there telling us about flash media server 3 and adobe mediaplayer. These presentations where good as expected by Waldo but some disappointments here about FMS 3 not supporting building custom items to it and is just like FMS 2 it that way. What it has is an encrypted rtmp connection and better performance. But it looks to me like a 2.5 version instead of a 3 version. (to be honest this too could all be looked up at the web) <a href="http://labs.gerbenrobijn.nl/2007/10/10/dutch-adobe-user-group-10-10-2007-interactive-video/#more-25" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2007/10/10/dutch-adobe-user-group-10-10-2007-interactive-video/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Here it is&#8230;</title>
		<link>http://labs.gerbenrobijn.nl/2007/03/19/here-it-is/</link>
		<comments>http://labs.gerbenrobijn.nl/2007/03/19/here-it-is/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 07:06:30 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Apollo]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/?p=16</guid>
		<description><![CDATA[Apollo has been released this morning in a alpha version. Download it here.


Lynda has but up some tutorial video&#8217;s on Apollo already. Go check them out now
And here is a shared book, titled &#8220;Apollo for Adobe Flex Developers Pocket Guide&#8221; and it free for non commercial usage.
]]></description>
			<content:encoded><![CDATA[<p>Apollo has been released this morning in a alpha version. <a href="https://www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5Fapollo">Download it here.</a><center><br />
<img src="http://labs.gerbenrobijn.nl/image/apollo.jpg" alt="Apollo" width="300" /><br />
</center></p>
<p><a href="http://www.lynda.com/">Lynda</a> has but up some tutorial video&#8217;s on Apollo already. <a href="http://movielibrary.lynda.com/html/modPage.asp?id=378">Go check them out now</a></p>
<p>And <a href="http://labs.adobe.com/wiki/index.php/Apollo:Books:Apollo_for_Adobe_Flex_Developers_Pocket_Guide">here</a> is a shared book, titled &#8220;Apollo for Adobe Flex Developers Pocket Guide&#8221; and it free for non commercial usage.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2007/03/19/here-it-is/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Saving in Flash or Flex</title>
		<link>http://labs.gerbenrobijn.nl/2007/02/21/saving-in-flash-or-flex/</link>
		<comments>http://labs.gerbenrobijn.nl/2007/02/21/saving-in-flash-or-flex/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 21:28:56 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Programs]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/?p=15</guid>
		<description><![CDATA[I&#8217;m running around with following thoughts quit some time now. Why can&#8217;t adobe build in save options in flash and flex? Is it because safety issues? I don&#8217;t think that would be an issue, cause the same can be achieved with javascript, c, java, php, and the rest you can sum up. Or is it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running around with following thoughts quit some time now. Why can&#8217;t adobe build in save options in flash and flex? Is it because safety issues? I don&#8217;t think that would be an issue, cause the same can be achieved with javascript, c, java, php, and the rest you can sum up. Or is it because Apollo is being released soon and Adobe is hoping in a increase in popularity because this &#8220;feature&#8221; is probably supported in Apollo? I say build it in flash and flex so we don&#8217;t have to work with annoying 3th party software. And if someone can explain it to me why it isn&#8217;t build in, I would be happy to hear it, cause I would love to understand it.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2007/02/21/saving-in-flash-or-flex/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Arguments, a piece of history?</title>
		<link>http://labs.gerbenrobijn.nl/2006/12/15/arguments-a-piece-of-history/</link>
		<comments>http://labs.gerbenrobijn.nl/2006/12/15/arguments-a-piece-of-history/#comments</comments>
		<pubDate>Fri, 15 Dec 2006 14:42:41 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/?p=9</guid>
		<description><![CDATA[Did you use the arguments object in actionscript 2? This vague object that you could call without having seen it anywere. Well it has gotten a lot better with Actionscript 3. They introduced the rest keyword.
This is how it works:
PLAIN TEXT
Actionscript:




//Create a function with the rest keyword like : &#34;... args&#34;


public function average &#40;name:String, ... [...]]]></description>
			<content:encoded><![CDATA[<p>Did you use the arguments object in actionscript 2? This vague object that you could call without having seen it anywere. Well it has gotten a lot better with Actionscript 3. They introduced the rest keyword.</p>
<p>This is how it works:</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showCodeTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//Create a function with the rest keyword like : &quot;... args&quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> average <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">name</span>:<span style="color: #0066CC;">String</span>, ... <span style="color: #006600;">args</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">var</span> total:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #808080; font-style: italic;">//Handle the rest keyword like an array</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">Number</span>=<span style="color: #cc66cc;color:#800000;">0</span>; i&lt;args.<span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; total += args<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">var</span> avarage:<span style="color: #0066CC;">Number</span> = total / args.<span style="color: #0066CC;">length</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"The average of "</span> +<span style="color: #0066CC;">name</span> +<span style="color: #ff0000;">" is: "</span> +average<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #808080; font-style: italic;">// traces: The average of Averagetest is: 2.75</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// Just call the function with a name and a variable number of numbers</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">average<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Averagetest"</span>, <span style="color: #cc66cc;color:#800000;">2</span>,<span style="color: #cc66cc;color:#800000;">2</span>,<span style="color: #cc66cc;color:#800000;">3</span>,<span style="color: #cc66cc;color:#800000;">4</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I even tried the arguments Object in actionscript 3 but it was kinda buggy. So I just dropped that, the rest keyword works fine and you don't have to guess where it is coming from. Bye bye arguments.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2006/12/15/arguments-a-piece-of-history/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Format text</title>
		<link>http://labs.gerbenrobijn.nl/2006/12/08/format-text/</link>
		<comments>http://labs.gerbenrobijn.nl/2006/12/08/format-text/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 15:51:56 +0000</pubDate>
		<dc:creator>Gerben Robijn</dc:creator>
		
		<category><![CDATA[Actionscript 2]]></category>

		<category><![CDATA[Actionscript 3]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://labs.gerbenrobijn.nl/?p=8</guid>
		<description><![CDATA[When I was working on a flash application I came across a problem of a back-end who was returning strong tags...something flash still finds like it needs to be ignored when it is put in html text. So I wrote a static format class which could replace text with other text. So not only usable [...]]]></description>
			<content:encoded><![CDATA[<p>When I was working on a flash application I came across a problem of a back-end who was returning strong tags...something flash still finds like it needs to be ignored when it is put in html text. So I wrote a static format class which could replace text with other text. So not only usable for html but also for other things you might want to replace. I rewrote the class to actionscript 3.</p>
<div class="igBar"><span id="lactionscript-4"><a href="#" onclick="javascript:showCodeTxt('actionscript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FormatText<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> replace<span style="color: #66cc66;">&#40;</span>sValue:<span style="color: #0066CC;">String</span>, sToReplace:<span style="color: #0066CC;">String</span>, sWith:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> sValue.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span>sToReplace<span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span>sWith<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> format<span style="color: #66cc66;">&#40;</span>sValue:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//add your text that needs replacing here</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//sValue = replace(sValue, &lt;text that needs replacing&gt;,&lt;text that needs to be inserted&gt;)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;strong&gt;"</span>, <span style="color: #ff0000;">"&lt;b&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;STRONG&gt;"</span>, <span style="color: #ff0000;">"&lt;b&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;/strong&gt;"</span>, <span style="color: #ff0000;">"&lt;/b&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;/STRONG&gt;"</span>, <span style="color: #ff0000;">"&lt;/b&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;em&gt;"</span>, <span style="color: #ff0000;">"&lt;i&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;EM&gt;"</span>, <span style="color: #ff0000;">"&lt;i&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;/em&gt;"</span>, <span style="color: #ff0000;">"&lt;/i&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; sValue = replace<span style="color: #66cc66;">&#40;</span>sValue, <span style="color: #ff0000;">"&lt;/EM&gt;"</span>, <span style="color: #ff0000;">"&lt;/i&gt;"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> sValue;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>View an example <a href="http://labs.gerbenrobijn.nl/code-examples/formattext/Format.swf" title="format text" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.gerbenrobijn.nl/2006/12/08/format-text/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

