Randomize Everything

Icon

And create the perfect world

Code snippet: Trimming texts in AS2

From time to time some of us still have to code in oldskool ActionScript 2. A few days ago a colleague asked me for a function for trimming ‘new line’ (\n), ‘carriage return’ (\r) characters, spaces, …
So I ended up searching my archives for a code snippet to archive this functionality and look what I found:

Read the rest of this entry »