Don Park gives a peek inside Laszlo, Java based toolbox for generating SWF dynamically in J2EE applications.
The big inhale (thanks for the term wgg) of Java packages is downright scary, but maybe there's an underlying toolkit for spitting out Flash worth looking at.