Flash scripts were always at least 10-20 times slower than Java (in my experience), but it's catching up with Flash 9/10. The latest Flash has even some support for pixel shaders

Scripts are easier exchangable now between Flash and Java, although the graphical stuff is of course different.