Are you done yet?

I’ve been playing with AS3 bitmap manipulation, cool stuff, but I have a question/concern:

How do I know when a floodFill is done?

I’m floodFill’ing a section of a bitmap, then immediately checking to see if the bitmap is equal to another bitmap with .compare.

If I don’t slow the .compare down with a timer (just one second) the compare is comparing the old bitmapData.

Any of those big brains out there have an idea?

Thanks.