In a game, I want to check if a ball is 'in or out' by determining the pixel colour it has landed on - in this case the stage background colour. Can anyone help with the AS3 code? Thanks.
you have to use the bitmapdata class to determine pixel color but i'm not sure that makes sense for whatever you're trying to do. to be sure, you can't determine the stage color using it.
in addition, there is probably a better way using hitTestObject or hitTestPoint to do whatever you want.
Europe, Middle East and Africa