I cannot seem to be able to set the “text” property of the Label component during the constructor of the “DocumentClass”. Even though tracing “myLabel.text” at the constructor shows the correct text, when the swf file is finally loaded the myLabel.text property is back to it’s default value. It’s only after a DisplayObject.Event has been called (whose event handler also sets the myLabel.text property) that myLabel.text is properly displayed.
Just as a comparison, I added a “Text Tool” dynamic text box during design and modify it during the constructor and that gets properly displayed after the file has finished loading.
Is that done on purpose or is it just a bug?