Dynamic Text on a curve, Flash

Is there any way for me to put text on a curve dynamically?

I’ve found this: http://gousable.com/flash/text2curve.html

So I assume its possible, but I’d rather do it with code than a component.