There are some quite powerful tools for creating Flash (and Javascript) dynamically from code, without having to install the Flash compiler of Micromedia/Adobe:
haXe: OOP language for creating xml/javascript/flash
http://haxe.org, see also: http://blog.haxe.org/
haXe uses the neko language virtual machine: http://nekovm.org/
compare this to the also interesting lua http://www.lua.org/
An alternative […]