the displacementmapfilter would work perfectly for that. for an example of how it works (dynamically) check http://www.kglad.com> snippets > displacement.
but it might be easier to convert from the js code (or just use it to load a html page in a swf).