Tagged with 'string'
Snippets
-
Format price with ActionScript 2.0 by vixiom
ActionScript 2.0 biggest weakness is lack of support for regular expressions. This makes relatively simple things like formatting price (the American way) a bit of a chore. Here’s a solution for those not quite ready to make all their users switch to Flash Player 9.
Save as Favorite | Tags: AS2, price, format, string
-
URL Encode a string in ActionScript by vixiom
Here are a couple of methods that are similar to PHP's urlencode.
Save as Favorite | Tags: AS3, urlencode, encode, string, encodeURI, escape, UTF-8, URI, URL
-
Remove extra returns from dynamic text by vixiom
Flash and Flex text boxes sometimes like to add bonus returns/line breaks to text coming from a database and displayed in text box. Here's a one liner to remove them.
Save as Favorite | Tags: AS3, replace, string, return, line break, remove


