-
Archives
- August 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- March 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- August 2009
- June 2009
- May 2009
- February 2009
- January 2008
Popular tpics
3D 8-bit achievements actionscript advergame android as3 away3d Billiard Physics bitmap collision bitmapdata bitmap effects Blender Box2D client work collision detection cuepoints design patterns easter eggs entertainment Flare3D flash games flv game Games konami code macgruber MD2 mochi mochiads movie games movies OOP pandorum particles puzzle games SAT Separating Axis Theorum shooting games Stage3d state machine Tutorials vector2D vectors video games
Category Archives: Code Snippets
AS3 Get Visible Bounds of Transparent Display Object
How do you get the height of the visible part of a movie clip or bitmap? I ran into a case last week where I needed to get the with of a masked object. The object was a scrollbar. And … Continue reading
Flipping A BitmapData Image
Here’s a handy code snippet for flipping the pixels of a bitmapdata, and ending up with a new bitmap data that is the mirror image of the original. function flipBitmapData(original:BitmapData, axis:String = "x"):BitmapData { var flipped:BitmapData = new BitmapData(original.width, original.height, … Continue reading
