<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/actionscript-3/tags/String</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 05:27:28 GMT</pubDate>
<item>
<title>(ActionScript 3) Split string into Array - izaiasdotcom</title>
<link>http://snipplr.com/view/63811/split-string-into-array/</link>
<description><![CDATA[ <p>Easily breaks a string into an array of words.

*If your string has special characters such as latin, add those characters to the r var. Just like var r:RegExp = /[^\wçàáâãèéêìíîòóôõùúûüÀÁÇÂÃÈÉÊÌÍÎÒÓÔÕÙÚÛÜ¡]+/g;</p> ]]></description>
<pubDate>Fri, 09 Mar 2012 02:15:34 GMT</pubDate>
<guid>http://snipplr.com/view/63811/split-string-into-array/</guid>
</item>
<item>
<title>(ActionScript 3) Simple, but very robust Mad Libs algoritm - burnandbass</title>
<link>http://snipplr.com/view/62150/simple-but-very-robust-mad-libs-algoritm/</link>
<description><![CDATA[ <p>This is very simple script, you can add ass meny items and arrays as you want. You can change the separator and/or enging of the sentance. It can be very easily modified to work with external XML files</p> ]]></description>
<pubDate>Wed, 28 Dec 2011 22:33:38 GMT</pubDate>
<guid>http://snipplr.com/view/62150/simple-but-very-robust-mad-libs-algoritm/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Insert and Delete Characters at TextField CaretIndex Position - adrianparr</title>
<link>http://snipplr.com/view/60933/as3-insert-and-delete-characters-at-textfield-caretindex-position/</link>
<description><![CDATA[ <p>This code gets the current caretIndex in the textfield and then inserts the specified string at that point. The caretIndex position is then updated using setSelection, ready for the next insertion. This was developed to be used with an on-screen keyboard (for entering text into a textfield when the user is in fullscreen mode). The backspace button is intended to function in the same manner as pressing the delete key on your keyboard.</p> ]]></description>
<pubDate>Thu, 17 Nov 2011 22:09:46 GMT</pubDate>
<guid>http://snipplr.com/view/60933/as3-insert-and-delete-characters-at-textfield-caretindex-position/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Convert Numbers to Words - adrianparr</title>
<link>http://snipplr.com/view/48692/as3-convert-numbers-to-words/</link>
<description><![CDATA[ <p>Full credit for this goes to Deva Raj (@nsdevaraj). This is also a good function for doing a similar thing, http://snipplr.com/view/27954/as3-convert-a-number-to-a-string/</p> ]]></description>
<pubDate>Wed, 09 Feb 2011 23:21:32 GMT</pubDate>
<guid>http://snipplr.com/view/48692/as3-convert-numbers-to-words/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 RGB Colour to CSS Colour (String) - adrianparr</title>
<link>http://snipplr.com/view/48674/as3-rgb-colour-to-css-colour-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 21:45:14 GMT</pubDate>
<guid>http://snipplr.com/view/48674/as3-rgb-colour-to-css-colour-string/</guid>
</item>
<item>
<title>(ActionScript 3) Truncate overflow text in a textfield and add an ellipsis (...) - mgeduld</title>
<link>http://snipplr.com/view/47623/truncate-overflow-text-in-a-textfield-and-add-an-ellipsis-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 21 Jan 2011 02:52:34 GMT</pubDate>
<guid>http://snipplr.com/view/47623/truncate-overflow-text-in-a-textfield-and-add-an-ellipsis-/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Convert An Object To A Class By Name - adrianparr</title>
<link>http://snipplr.com/view/47559/as3-convert-an-object-to-a-class-by-name/</link>
<description><![CDATA[ <p>Here is an example of a sound that is in a library with the class field set to MySound.</p> ]]></description>
<pubDate>Thu, 20 Jan 2011 03:55:19 GMT</pubDate>
<guid>http://snipplr.com/view/47559/as3-convert-an-object-to-a-class-by-name/</guid>
</item>
<item>
<title>(ActionScript 3) Template system (replace items in a string with items from a hash) - mgeduld</title>
<link>http://snipplr.com/view/47454/template-system-replace-items-in-a-string-with-items-from-a-hash/</link>
<description><![CDATA[ <p>This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).

Example:

var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };

var template: String = "The %{SPEED} %{ADJECTIVE} fox %{VERB} over the %{ADJECTIVE} dog.";

trace( makeReplacements( template, replacements )  );

//output: The slow green fox slithers over the green dog.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 03:03:30 GMT</pubDate>
<guid>http://snipplr.com/view/47454/template-system-replace-items-in-a-string-with-items-from-a-hash/</guid>
</item>
<item>
<title>(ActionScript 3) Strip whitespace at the beginning and the end of a string - gandreini</title>
<link>http://snipplr.com/view/47347/strip-whitespace-at-the-beginning-and-the-end-of-a-string/</link>
<description><![CDATA[ <p>This can be useful when you retrieve strings from an XML or script that have whitespaces at the beginning or the end.</p> ]]></description>
<pubDate>Tue, 18 Jan 2011 02:00:41 GMT</pubDate>
<guid>http://snipplr.com/view/47347/strip-whitespace-at-the-beginning-and-the-end-of-a-string/</guid>
</item>
<item>
<title>(ActionScript 3) String to Number conversion generates unexpected decimals, fix by toPrecision - godstroke</title>
<link>http://snipplr.com/view/45779/string-to-number-conversion-generates-unexpected-decimals-fix-by-toprecision/</link>
<description><![CDATA[ <p>This seems to be a bug.. or not..
But explains how to fix it anyway.</p> ]]></description>
<pubDate>Wed, 15 Dec 2010 18:52:41 GMT</pubDate>
<guid>http://snipplr.com/view/45779/string-to-number-conversion-generates-unexpected-decimals-fix-by-toprecision/</guid>
</item>
<item>
<title>(ActionScript 3) How to access query string arguments with AS3 - mhulse</title>
<link>http://snipplr.com/view/44852/how-to-access-query-string-arguments-with-as3/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Nov 2010 15:33:05 GMT</pubDate>
<guid>http://snipplr.com/view/44852/how-to-access-query-string-arguments-with-as3/</guid>
</item>
<item>
<title>(ActionScript 3) Search and Replace Strings - adamzwakk</title>
<link>http://snipplr.com/view/43665/search-and-replace-strings/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 06 Nov 2010 02:22:17 GMT</pubDate>
<guid>http://snipplr.com/view/43665/search-and-replace-strings/</guid>
</item>
<item>
<title>(ActionScript 3) Get Filename from url path and Remove extension - alptugan</title>
<link>http://snipplr.com/view/43135/get-filename-from-url-path-and-remove-extension/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 Oct 2010 01:40:27 GMT</pubDate>
<guid>http://snipplr.com/view/43135/get-filename-from-url-path-and-remove-extension/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Trim a Comma Delimited String (e.g. a list of comma separated keywords entered by a user) - adrianparr</title>
<link>http://snipplr.com/view/40007/as3-trim-a-comma-delimited-string-eg-a-list-of-comma-separated-keywords-entered-by-a-user/</link>
<description><![CDATA[ <p>This function trims a string and removes empty entries in a comma delimited list, removes extra commas from the beginning and end and also remove extra space characters between words.</p> ]]></description>
<pubDate>Sat, 04 Sep 2010 21:38:37 GMT</pubDate>
<guid>http://snipplr.com/view/40007/as3-trim-a-comma-delimited-string-eg-a-list-of-comma-separated-keywords-entered-by-a-user/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Load External Text File - adrianparr</title>
<link>http://snipplr.com/view/39430/as3-load-external-text-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 23 Aug 2010 20:24:05 GMT</pubDate>
<guid>http://snipplr.com/view/39430/as3-load-external-text-file/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Format a UK Mobile Number (XXXXX XXXXXX) - adrianparr</title>
<link>http://snipplr.com/view/34024/as3-format-a-uk-mobile-number-xxxxx-xxxxxx/</link>
<description><![CDATA[ <p>This returns a string with a single space after the fifth character.
Useful for displaying a UK mobile number which is easy to read.</p> ]]></description>
<pubDate>Fri, 07 May 2010 11:15:23 GMT</pubDate>
<guid>http://snipplr.com/view/34024/as3-format-a-uk-mobile-number-xxxxx-xxxxxx/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Capitalise the First Letter of a String - adrianparr</title>
<link>http://snipplr.com/view/33586/as3-capitalise-the-first-letter-of-a-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 Apr 2010 09:08:52 GMT</pubDate>
<guid>http://snipplr.com/view/33586/as3-capitalise-the-first-letter-of-a-string/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Checks and Returns Valid UK Postcode using Regular Expression - adrianparr</title>
<link>http://snipplr.com/view/32540/as3-checks-and-returns-valid-uk-postcode-using-regular-expression/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 21 Apr 2010 05:54:43 GMT</pubDate>
<guid>http://snipplr.com/view/32540/as3-checks-and-returns-valid-uk-postcode-using-regular-expression/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Get the Last Char in a String - adrianparr</title>
<link>http://snipplr.com/view/29891/as3-get-the-last-char-in-a-string/</link>
<description><![CDATA[ <p>Returns the last character is a string.</p> ]]></description>
<pubDate>Wed, 17 Mar 2010 10:35:19 GMT</pubDate>
<guid>http://snipplr.com/view/29891/as3-get-the-last-char-in-a-string/</guid>
</item>
<item>
<title>(ActionScript 3) How to Reverse a String - alvincrespo</title>
<link>http://snipplr.com/view/28354/how-to-reverse-a-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Feb 2010 22:02:10 GMT</pubDate>
<guid>http://snipplr.com/view/28354/how-to-reverse-a-string/</guid>
</item>
</channel>
</rss>