Use this in a frame behavoir:
on exitFrame me
if sprite(1).frame<sprite(1).member.FrameCount then play the frame
end if
end
In this example, when sprite 1 is your flash movie, it will keep playing the frame unitl the flash movie's animation has concluded.