18 posts

ActionScript

March 1, 2013

AS3 : Setting the Mouse Cursor

Problem: Sometimes it can be difficult to use custom cursors in AS3. Solutions: The Mouse singleton class makes this really easy and fluid. If you compare a side-by-side of a SWF u

September 21, 2011

ActionScript 3.0 Pad String Method

Problem: I use PHP a lot and am currently working on a project in ActionScript (Flash Builder). I found myself needing a method similar to str_pad. I found a couple online, but not

February 3, 2011

Copy Vector in AS3

Problem: When dealing with complex datatypes, you will find the normal assignment doesn't work to make a copy as it does with simple datatypes like int, string, etc. var vec:Vector

December 12, 2008

Array Shuffle AS3

When working on shuffling arrays for games we are working on, I wanted to write something that would be efficient and quick. I had previously written a method using the Array push

October 24, 2008

Flash AS3 String Prototype Extension

Problem: I was working on a problem where two strings looked identical but weren't. Solution: Because there were many variations of the string, it was possible that some converting