Unable to get the width of the label control.
code is below.
<?xml version="1.0" encoding="utf-8"?>
private var label:Label
private function init():void
label = new Label()
label.text = "Hello World";
I got the solution.
The callLater() method queues an operation to be performed for the next screen refresh, rather than in the current update. Without the callLater() method, you might try to access a property of a component that is not yet available. The callLater() method is most commonly used with the creationComplete
event to ensure that a component has finished being created before Flex proceeds with a specified method call on that component.