Flash can accept dynamic text content into an animation, but if you want to create graphics on the fly, you kinda need Macromedia generator, which costs alot.
A free alternative would be to use PHP dynamic graphic creation to generate a graphic, and import that graphic into the playing Flash movie on the fly.