How CasparCG works with parameters passed to FT in as3

Guys, I have two layers in my as3 project.

One has a movieclip with a dynamic textfield inside.

The second has a movieclip with a background. the idea is that the text passed by casparcg changes the size of the textfield and a function also resizes the background.

The error: casparcg passes the text to the text field, but does not resize the background

See this tutorial here. For instance on line 22 it sets the source property of an UILoader object. Modify the code, so that it instead sets the text property of your Textfield. After that you can query the width of the Textfield and do the math to scale (or move a mask) for the background. Use Google to query for AS3 resources if you run into problems.