<?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>Wassim Sidani &#187; Flash</title>
	<atom:link href="http://www.sidani.info/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sidani.info</link>
	<description>Education Biology Flash Animation 3D biology</description>
	<lastBuildDate>Thu, 10 Jun 2010 08:44:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Arabic text from mySQL database using amfphp</title>
		<link>http://www.sidani.info/2010/05/10/arabic-text-from-mysql-database-using-amfphp/</link>
		<comments>http://www.sidani.info/2010/05/10/arabic-text-from-mysql-database-using-amfphp/#comments</comments>
		<pubDate>Mon, 10 May 2010 18:31:39 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[french]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sidani.info/?p=134</guid>
		<description><![CDATA[I had this issue where arabic text and french text retrieved from a mySQL database were not displaying correctly in my flash frontend, I was using amfphp to communicate and query the database. Needless to say that the text does display correctly in phpMyAdmin so it is correctly encoded in the database itself.]]></description>
			<content:encoded><![CDATA[<p>I had this issue where arabic text and french text retrieved from a mySQL database were not displaying correctly in my flash frontend, I was using amfphp to communicate and query the database. Needless to say that the text does display correctly in phpMyAdmin so it is correctly encoded in the database itself.</p>
<p>So here&#8217;s what I did to resolve the issue:</p>
<p>- Ensure that the mySQL tables where the text is stored are <strong>using the utf8_general_ci Collation</strong>.</p>
<p>- Set <strong>$gateway->setCharsetHandler( &#8220;none&#8221;, &#8220;ISO-8859-1&#8243;, &#8220;ISO-8859-1&#8243; )</strong> in the gateway.php file (in case you&#8217;re wondering, yes you should simply NOT use iconv or utf_decoder or mbstring or the like, just disable the setCharsetHandler conversion by using &#8220;none&#8221; as the conversion method).</p>
<p>- in your php service file, say it&#8217;s called permissions.php, use the following : </p>
<p><code>$rsConnectionID=mysql_connect("localhost", "root", "");<br />
		mysql_set_charset("utf8", $rsConnectionID);</code></p>
<p>Be sure to have these set before running your query or passing the results to flash.</p>
<p>This should resolve all the issues you&#8217;re having, of course <strong>you should not use the following actionScript</strong> : <code>system.useCodepage = true;</code> as this will tell the flash player not to use utf 8 as default encoding and will surely get you into troubles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2010/05/10/arabic-text-from-mysql-database-using-amfphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash CS5 and the iPhone</title>
		<link>http://www.sidani.info/2010/04/21/flash-cs5-and-the-iphone/</link>
		<comments>http://www.sidani.info/2010/04/21/flash-cs5-and-the-iphone/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 19:10:43 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash CS5]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2010/04/21/flash-cs5-and-the-iphone/</guid>
		<description><![CDATA[I think that by now everyone in the flash community knows about the &#8220;Slap in the face&#8221; we, as flash developers, received by Apple, in case you didn&#8217;t you can read all about it in the &#8220;Go screw yourself Apple&#8221; post. A side effect of adobe&#8217;s announcement that flash CS5 will export to iPhone and [...]]]></description>
			<content:encoded><![CDATA[<p>I think that by now everyone in the flash community knows about the &#8220;Slap in the face&#8221; we, as flash developers, received by Apple, in case you didn&#8217;t you can read all about it in the <a href="http://theflashblog.com/?p=1888">&#8220;Go screw yourself Apple&#8221; post</a>.</p>
<p>A side effect of adobe&#8217;s announcement that flash CS5 will export to iPhone and iPod touch was encouraging thousands of flash developers to buy an iPhone or iPod touch to have the appropriate hardware to test and develop Flash-based ipa, at least that&#8217;s what I did&#8230;Now Apple should be grateful to this &#8220;free Marketing favor&#8221; Adobe inadvertently offered to say the least&#8230;</p>
<p>I already have a windows mobile powered HTC touch diamond phone and I invested in buying a 3rd generation 32 GB iPod touch for that purpose, if Apple continues its tight policy about 3rd party-built ipa, then I will either have to invest in an Android or just keep my ipas for myself! I might even have to jailbreak the iPod to be able to use my own built applications on my device! please correct me if I am wrong (should the device be jailbroken to install my own self-built ipas without having to kiss Mr Jobs &#8216;hand&#8217; to get approval?)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2010/04/21/flash-cs5-and-the-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ActionScript3 flash shopping cart-updates</title>
		<link>http://www.sidani.info/2009/02/06/actionscript3-flash-shopping-cart-updates/</link>
		<comments>http://www.sidani.info/2009/02/06/actionscript3-flash-shopping-cart-updates/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:51:26 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2009/02/06/actionscript3-flash-shopping-cart-updates/</guid>
		<description><![CDATA[Ok so we I had some good suggestions sent to my inbox, I am already improving and cleaning up some of the code of the actionscript3 flash shopping cart so It will be easy to integrate these new features. A full list of the new features will be published soon, meanwhile if you have any [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so we I had some good suggestions sent to my inbox, I am already improving and cleaning up some of the code of the <a href="http://www.sidani.info/2009/01/28/flash-shopping-cart/">actionscript3 flash shopping cart</a> so It will be easy to integrate these new features. A full list of the new features will be published soon, meanwhile if you have any wish list, feel free to comment here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2009/02/06/actionscript3-flash-shopping-cart-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>actionscript3 flash shopping cart- new features</title>
		<link>http://www.sidani.info/2009/02/03/actionscript3-flash-shopping-cart-new-features/</link>
		<comments>http://www.sidani.info/2009/02/03/actionscript3-flash-shopping-cart-new-features/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 21:00:21 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2009/02/03/actionscript3-flash-shopping-cart-new-features/</guid>
		<description><![CDATA[So we&#8217;re in the process of adding some cool new features to make competitors look small, these will be revealed very soon once we make sure no other cart includes the same features or even come close! You can expect things that will surely add to the usability of the actionscript3 flash shopping cart and [...]]]></description>
			<content:encoded><![CDATA[<p>So we&#8217;re in the process of adding some cool new features to make competitors look small, these will be revealed very soon once we make sure no other cart includes the same features or even come close! You can expect things that will surely add to the usability of the<br />
<a href="http://www.sidani.info/2009/01/28/flash-shopping-cart/">actionscript3 flash shopping cart</a> and will satisfy even the most demanding users.<br /> If you have any feature you would like to see implemented in the actionscript3 flash cart, please drop us a line.<br /> We know what designers and developers want, and we have the right package for each, more to come in the near future.
</p>
<p>
 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2009/02/03/actionscript3-flash-shopping-cart-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash shopping cart</title>
		<link>http://www.sidani.info/2009/01/28/flash-shopping-cart/</link>
		<comments>http://www.sidani.info/2009/01/28/flash-shopping-cart/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 23:01:16 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2009/01/28/flash-shopping-cart-actionscript3/</guid>
		<description><![CDATA[After months of work, we are glad to announce the immediate availability of the actionscript3 flash shopping cart. Packed with lots of features (video support, multiple payment processors and gateways, supporting paypal, 2checkout and authorize.net) this new cart is probably the most flexible yet lightweight cart available today. This actionScript3 shopping cart takes advantage of [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>After months of work, we are glad to announce the immediate availability of the actionscript3 <strong>flash shopping cart. </strong><br />Packed with lots of features (video support, multiple payment processors and gateways, <strong>supporting paypal, 2checkout and authorize.net</strong>) this new cart is probably the most flexible yet lightweight cart available today.</p>
<p><a href="http://sidani.info/test/as3cart/">This actionScript3 shopping cart </a>takes advantage of the rendering engine of flash player 9 and up, its performance exceeds actionscript2 carts by far and you can be sure your customers will receive first class user experience using our cart. </p>
<p>With a filesize less than 150 Kb, you will be amazed of the number of features this cart brings to your online store.</p>
<p>You can have several categories of goods sold through the cart, tangible and intangible (clothing, software, video lectures etc&#8230;). <strong>The cart supports all video and image formats </strong>supported by the flash player.</p>
<p>The cart comes in two flavors, an <strong>XML driven</strong> version and <strong>a mySQL+php  adminPanel</strong> powered version; both flavors are ready to go products with no learning curves.\r\n</p>
<p>The XML driven version can run on any server, there are no special requirements, no database installation or server side scripting needed whatsoever.</p>
<p>The mySQL adminPanel powered version uses a mySQL database to store the details about the products and a php backend to manage the database through a very user friendly interface that makes sense!</p>
<p>Just fill in the details of each product, upload the images and you are ready to sell online.</p>
<p>Additional gateways and payment processors can also be incorporated into the cart upon request.</p>
<p>The actionscript3 flash shopping cart can be connected to an optional automatic delivery system (sold separately) which is extremely useful for digital goods; buyers can immediately download the digital product they bought without intervention by the merchant.</p>
<p>We offer two licensing schemes for maximum flexibility, a designer version and a developer version.</p>
<p><strong>The designer package</strong> of the actionScript3 shopping cart does not include source code. </p>
<p>So what if you want to customize the look of the cart? Well it is easier than doing it yourself,  you can simply send us a psd or a draft of your design and we can do that for you and send you the finished, ready to deploy, swf file.</p>
<p>A single license (works on one domain) costs 150 USD for the XML driven version and 250 USD for the adminPanel version.</p>
<p><strong>The developer package</strong> allows you to do practically anything with the cart since full commented source code is included. The licensing scheme of the developer package is more flexible than the designer package since you can use the cart on an unlimited number of domains without restrictions. </p>
<p>The look and feel of the cart is easily customizable if you have the developer version, all you need is flash CS3 or higher and some basic flash knowledge.</p>
<p>The XML version of the developer package costs 1000 USD while the adminPanel powered version costs 1500 USD.</p>
<p>We offer free installation and technical support with every sale (applies for both the designer and developer versions).</p>
<p>We&#8217;re also capable of adding custom features, integrating the cart with existing flash sites, and translating the interface to different languages (additional fee, depends on complexity of the task). </p>
<p>Here’s  the demo of the <a href="http://sidani.info/test/as3cart/">AS3 flash shopping cart</a>, This version supports using videos as description of an item as well as a large picture or even an swf file.<br /> the demo connects to paypal as payment gateway yet the retail version supports 2checkout and authorize.net as well. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2009/01/28/flash-shopping-cart/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Flash CS4 released, or is it?</title>
		<link>http://www.sidani.info/2008/11/17/flash-cs4-released-or-is-it/</link>
		<comments>http://www.sidani.info/2008/11/17/flash-cs4-released-or-is-it/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 18:35:17 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2008/11/17/flash-cs4-released-or-is-it/</guid>
		<description><![CDATA[As a flash expert and enthusiast, I was thrilled when the release of the new Flash CS4 was announced. Like thousands of other flash coders, I went through the pain of downloading the trial version of Flash CS4 (almost one gigabyte large) just to find that the help files and API documentation were simply not [...]]]></description>
			<content:encoded><![CDATA[<p>As a flash expert and enthusiast, I was thrilled when the release of the new Flash CS4 was announced. Like thousands of other flash coders, I went through the pain of downloading the trial version of Flash CS4 (almost one gigabyte large) just to find that the help files and API documentation were simply not there! The help menu takes you to adobe site to check the online version (if you are connected to the internet) or simply displays some very basic info with no code samples whatsoever.</p>
<p>I can now say with confidence, Adobe is following a pattern with every new release of Flash since CS3, the documentations are getting crappier with every release, not a good strategy if they want people to actually learn flash and if they want to expand the use of flash as a platform.</p>
<p>CS4 brought yet another disappointment to me and millions of RTF users, the &#8220;ligature&#8221; support is buried deep inside some user unfriendly classes and there is no simple way to access this essential feature for the average user by simply setting a property for a static or dynamic text field, way to go Adobe, really smart!\r\n</p>
</p>
<p>So was Flash CS4 really released or is this just another pre-release alpha quality software? The latter seems more probable. </p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2008/11/17/flash-cs4-released-or-is-it/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash CS4 new features</title>
		<link>http://www.sidani.info/2008/09/28/flash-cs4-new-features/</link>
		<comments>http://www.sidani.info/2008/09/28/flash-cs4-new-features/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 07:34:16 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2008/09/28/flash-cs4-new-features/</guid>
		<description><![CDATA[Adobe recently announced Flash CS4, with great new features the flash community has been asking for, I had the chance the see the full package and I was impressed of the implementation of inverse kinematics, reminded me of moho&#8217;s (now anime studio) bones layers although moho&#8217;s offered much more options and flexibility, flash&#8217;s implementation is [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe recently announced Flash CS4, with great new features the flash community has been asking for, I had the chance the see the full package and I was impressed of the implementation of inverse kinematics, reminded me of moho&#8217;s (now anime studio) bones layers although moho&#8217;s offered much more options and flexibility, flash&#8217;s implementation is however dynamic i.e. we can script the bones and there&#8217;s a whole set of AS3 APIs for this purpose.</p>
</p>
<p>3D is also a much awaited feature yet papervision3D and alternative3D as well as other packages have much more than what adobe has to offer and are open source which make me wonder why adobe has not simply acquired and integrated one of these packages…</p>
</p>
<p>Again I feel that adobe is slowly but steadily removing the carpet from under the feet of AS2 developers, as I speculated, there&#8217;s no access to these goodies from within AVM1 i.e. AS2 is retiring in the eyes of the flash team and unless someone comes with some ingenious way to keep AS2 &#8220;hip and cool&#8221;, all of us AS2 guys will have to make the switch into the bitter AS3 beast with its unfriendly compiler that keeps yelling at you even you write one line of straight forward code&#8230;</p>
</p>
<p>One depressing find out is that RTL  is not supported in static text fields, only in dynamic and input text fields with exotic ligature turned on.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2008/09/28/flash-cs4-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quick way to detect Idleing in flash actionscript 2</title>
		<link>http://www.sidani.info/2008/07/25/a-quick-way-to-detect-idleing-in-flash-actionscript-2/</link>
		<comments>http://www.sidani.info/2008/07/25/a-quick-way-to-detect-idleing-in-flash-actionscript-2/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 01:20:30 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Tutorials]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2008/07/25/a-quick-way-to-detect-idleing-in-flash-actionscript-2/</guid>
		<description><![CDATA[So I had this customer who asked me to do an flv player for his site, he wanted the controls of the player to fade out when the user is idle, now flash does not have an onIdle event of any kind and the only way around this was to trigger a signal when the [...]]]></description>
			<content:encoded><![CDATA[<p>So I had this customer who asked me to do an flv player for his site, he wanted the controls of the player to fade out when the user is idle, now flash does not have an onIdle event of any kind and the only way around this was to trigger a signal when the mouse kept its position (did not move) for more than 3 second (or x seconds, customizable) or keys has not been pressed for x seconds.</p>
<p>Again, flash does not have an onMouseStill event so I had to do it this way:</p>
<p><code><br />
this.onMouseMove=function(){<br />
clearTimeout(toInt);<br />
fadeControlsIn();<br />
toInt=setTimeout(fadeOut,3000);</p>
<p>}<br />
function fadeOut(){<br />
//fading out code goes here...<br />
}<br />
function fadeControlsIn(){<br />
/fading in code goes here....</p>
<p>}<br />
</code></p>
<p>A similar approach can be applied to keypresses.</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2008/07/25/a-quick-way-to-detect-idleing-in-flash-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash player 10 and RTL support</title>
		<link>http://www.sidani.info/2008/05/16/flash-player-10-and-rtl-support/</link>
		<comments>http://www.sidani.info/2008/05/16/flash-player-10-and-rtl-support/#comments</comments>
		<pubDate>Fri, 16 May 2008 09:36:36 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2008/05/16/flash-player-10-and-rtl-support/</guid>
		<description><![CDATA[Big news, flash player 10 beta supports complex text layouts and namely support for RTL languages like Arabic! At last, more info here : http://labs.adobe.com/technologies/flashplayer10/demos/videos/text.html There are many other features added like CPU surfacing and GPU compositing as well as enhanced drawing API and native 3D support yet the RTL support is something we&#8217;ve been [...]]]></description>
			<content:encoded><![CDATA[<p>Big news, flash player 10 beta supports complex text layouts and namely support for RTL languages like Arabic! At last, more info here : <a rel="nofollow" target="_blank"  href="http://labs.adobe.com/technologies/flashplayer10/demos/videos/text.html">http://labs.adobe.com/technologies/flashplayer10/demos/videos/text.html</a>
	</p>
<p>There are many other features added like CPU surfacing and GPU compositing as well as enhanced drawing API and native 3D support yet the RTL support is something we&#8217;ve been waiting for long time, finally it has arrived! Thx Adobe, let&#8217;s hope it works as advertisied.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2008/05/16/flash-player-10-and-rtl-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Left trim and right trim actionScript functions</title>
		<link>http://www.sidani.info/2008/04/25/left-trim-and-right-trim-actionscript-functions/</link>
		<comments>http://www.sidani.info/2008/04/25/left-trim-and-right-trim-actionscript-functions/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 05:56:33 +0000</pubDate>
		<dc:creator>wassim</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Tutorials]]></category>

		<guid isPermaLink="false">http://www.sidani.info/2008/04/25/left-trim-and-right-trim-actionscript-functions/</guid>
		<description><![CDATA[Left trim and right trim actionScript functions These useful functions (lTrim and rTrim) are available in almost all programming languages yet not in actionScript, so here’s how to write ones yourself: lTrim is easier, so we’ll start with that: [as] function lTrim(txt:String):String { while (txt.charAt(0)==&#8221; &#8221; &#124;&#124;txt.charAt(0)==&#8221;\t&#8221; &#124;&#124; txt.charAt(0)==&#8221;\n&#8221; &#124;&#124; txt.charAt(0)==&#8221;\r&#8221; ) { txt=txt.substring(1,txt.length-1); } [...]]]></description>
			<content:encoded><![CDATA[<p>Left trim and right trim actionScript functions<br />
These useful functions (lTrim and rTrim) are available in almost all programming languages yet not in actionScript, so here’s how to write ones yourself:<br />
lTrim is easier, so we’ll start with that:</p>
<p>[as]<br />
function lTrim(txt:String):String {<br />
	while<br />
            (txt.charAt(0)==&#8221; &#8221;<br />
            ||txt.charAt(0)==&#8221;\t&#8221;<br />
            || txt.charAt(0)==&#8221;\n&#8221;<br />
            || txt.charAt(0)==&#8221;\r&#8221;<br />
            ) {<br />
		txt=txt.substring(1,txt.length-1);<br />
	}<br />
	return txt;<br />
}<br />
//usage example:<br />
trace(lTrim(&#8221;   here&#8217;s a text to trim&#8221;));// outputs : here&#8217;s a text to trim<br />
[/as]</p>
<p>Pretty much straight forward, the function accepts a string as argument and returns a string, it checks whether the first character is a space, tab, or newline character and simply cuts it out and runs the same check on the resulting substring until there are no white spaces left at the leftmost end of the string.</p>
<p>Now for the slightly harder rTrim function,</p>
<p>[as]</p>
<p>function rTrim (txt:String):String {</p>
<p>	while (txt.charAt(txt.length-1)==&#8221; &#8221; ||txt.charAt(txt.length-1)==&#8221;\t&#8221; || txt.charAt(txt.length-1)==&#8221;\n&#8221; || txt.charAt(txt.length-1)==&#8221;\r&#8221;){<br />
		txt=txt.substring(0,txt.length-1);<br />
	}<br />
	return txt;</p>
<p>}<br />
trace(rTrim (&#8220;rtrim this please  \n\r		 &#8220;)+&#8221;delimiter&#8221;);//outputs : rtrim this pleasedelimiter</p>
<p>[/as]<br />
The logic is very similar, feel free to use these wherever you like.<br />
I would recommend using these as part of a class for string manipulation.<br />
Btw, these functions are AS2 and AS3 compatible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sidani.info/2008/04/25/left-trim-and-right-trim-actionscript-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
