Flash 5 does allow limited scripting with three important features:
(1) Text file includes to alter text and send variable strings to control display (also in flash 4)
(2) A script driven flash generator server, which allows you to make swf's on the fly from images on server & text files
(2) Scripted database queries using Java and JDBC, which when combined with the flash generator allow you to have fully dyamnic flash files.
No, it is not as programable or as interactive as Shockwave, but together these enhancements make it easy to serve up dymanic content in a flash framework, and make it possible to easily integrate flash with dynamic web publishing systems.
Hope this helps.