Flash 8 Get Pixel and Some Snow…
Wednesday, November 30th, 2005Merry Christmas from Pixelfumes! I thought I’d share a little app that I was working on for the Pittsburgh Macromedia Flash Users Group Holiday Card Contest (Pittsburgh Submissions only please – you must be present to win). I had been wanting to try out some other uses for the new getPixel method of the BitmapData class. This movie is not using any hit tests or collision detection – it uses only the getPixel method to check where it is allowed to land (based on variables and conditions set in the code I wrote). This example also uses cacheAsBitmap to allow for the great performance. Granted things get a bit hairy if you continue to “Add Flakes” over and over with a high wind or fall rate. The snow blurs and sizes based on its speed, etc. Hope you like it!
UPDATE: As per request here is the source.


