0
votes

Can anyone tell me what is the practical use of the BitmapData.compare() function in AS3:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#compare()

I have a few in my list, but I believe I have yet to exhaust it.

1

1 Answers

0
votes

Lets say you want to make a camera detector. You compare the old version with the new version and if the differences are greater than the minimum acceptable, then...there you go :)

I used it to test if the webcam was working or not. Skype got it and in flash, it was basically a black screen input, so I tested two snapshots and compared them and they where equal (and a solid black color).