So I have a few other prototypes in my toolbox that I usually use with every project. Nothing real wow about them, but I was really getting sick of setting _x and _y in two statements. If I’m setting one, I’m almost always setting the other, so why not do it one statement instead of two. So while I was at it I did the same for _width and _height. Anyway here they are. There’s a couple more String prototypes to boot. Take a peek.
Jun 09
Jun 09
Here is a useful little actionscript prototype function I wrote to remove extra whitespace (spaces, tabs, returns, linefeeds) from strings.
Since Flash doesn’t ignore extra whitespace in HTML the way browsers do, it’s particularly useful in removing that extra whitespace in HTML you don’t want in a textfield.