Modify the canvas size dynamically

Hi guys,
I want to resize the canvas of my flash page ,depending on the content of the movie
the content will be a text coming from a XML file will be change always so
[FONT=verdana][SIZE=2][COLOR=#000000]the question:
how can i modify the canvas size dynamically?
thanks[/COLOR][/SIZE][/FONT]