Displacement filter effect in Sideroller

Not sure if this is a reasonable request or not, but I always feel the answer is 'no' if you dont ask.

Mayo, would you mind sharing the logic you use to sample the screen area around your sideroller character when you do your displacement effect (when the player does the smash button press)? I have something very similar that I used to take a screen size snapshot in the level surrounding the character, but I would like to see someone else's approach. Sometimes I think I can code in a vacuum and I can over-analyze something. In other words, my implementation might be really wordy (I think it is at the moment).

I'd like to use that sort of logic to create a lantern effect in the game I'm working on, but like I said, my implementation feels a bit heavy handed for the task.

Thanks either way for considering the request.
I make player invisible (don't want it to displace), copy the displacement region of the level (not the whole screen) to a bitmap, add the bitmap to the stage under the player, then apply the displacement filter to the bitmap. This is the last thing done every frame (just before flash renders everything). Nothing magic... the hard part was figuring out the colors for displacement.

Original thread: https://box2d.org/forum/viewtopic.php?t=6449