Well, yes you will need to write some action script 3 code for both swfs.
-you will need to use the loader class to load your images.
-apply the flasheff effect.
-use timer class to synchronize each phase for each swf.
PS Also, make sure that both swfs also have the same FPS(frame per seconds).