Text on a path

Is there a way in Flash to create dynamic text on a path as in this example:
[center][/center]