How to make a dynamic title?


I want to make a title for the categories in my website.

Is it possible to make a flash movie with a font embedded in it that accepts 2 variables trough the embed tag, a text (the text for the title of the category) and 2 numbers ( one for the length of the line under the title text and one for the font size).

With these parameters the movie makes the title in the given size with the given text, with a line under it with the given length.

Thnx in advance for answering.