Blog Categories
- Art (49)
- ChineseBrush (13)
- Draw (18)
- Photoshop (6)
- Practice (24)
- Comics (13)
- Cooking (3)
- Danny's Comic Journal (9)
- You had me at Croissant (2)
- Games (13)
- Flash Game (10)
- Links (2)
- News (22)
- Store (8)
- Tutorials (43)
- How To (7)
- Lessons Learned (5)
- Materials (8)
- Observation (10)
- Technique (17)
- Uncategorized (2)
Danny Around The Web
Links
Links to People
- 10min Drawing Techs.
- Alberto Ruiz
- Ann
- Ben Seto
- Brittney Lee
- Genevieve
- Karen Luk
- Marc Holmes
- N8 Vandyke
- Paul Forest
- Russel
- Shaheed Khan
- Vince
Blog Archive
- May 2012 (9)
- April 2012 (1)
- February 2010 (1)
- January 2010 (6)
- December 2009 (3)
- November 2009 (3)
- October 2009 (7)
- September 2009 (2)
- August 2009 (1)
- July 2009 (1)
- April 2009 (2)
- March 2009 (1)
- February 2009 (9)
- January 2009 (5)
- December 2008 (8)
- November 2008 (3)
- October 2008 (1)
- August 2008 (1)
- June 2008 (3)
- May 2008 (3)
- April 2008 (2)
- March 2008 (2)
- February 2008 (11)
- January 2008 (10)
- December 2007 (2)
- November 2007 (1)
- October 2007 (1)
Meta
BTW, this is the falling blocks flash game I mentioned in my previous post. (click to play)


I know this is supposed to be an art blog, but as soon as you introduce a computer, the lines between art and engineering start to get blurred. Regardless, I found this Flash AS3 Memory Leak to be such a landmine that I just had to post it somewhere for other people to hopefully find and breath a sigh of relief when they realize why their flash game slows down and grinds to a halt the longer they play it.
Okay, no beating around the bush. Do this code once a frame (or more!) and you’re flash game will grind to a halt.
mySprite.graphics.beginFill( 0xFFFFFF );
mySprite.graphics.drawRect( vPos.x, vPox.y, vSize.x, vSize.y );
mySprite.graphics.endFill();
This was my “DrawBlock” function for my falling blocks game. I see these three lines posted all over the web in tutorial and in forums. –Worse, I often only see the first two lines and no endFill(). The above code eats memory.
