I'm an Actionscript beginner. Eventually I want to write some code that arranges objects on the stage, and to do that I need to know their dimensions. I'm getting behavior I didn't expect from the 'width' property. In the following, no matter what text I use in my TextField (whether it is narrow or wide) the 'width' property is 100. How do I find out what the actual width of the drawn pixels is? Or the actual height? This would be like finding a bounding rectangle, as Qt would call it. How about if I want to include all the children within the bounding rectangle?
public class App1 extends Sprite {
public function App1() {
var t:TextField = new TextField();
t.text = "Foo Foo";
addChild(t);
trace(t.width);
}
}