What is happening here? Problem of TextField.

I am not new to this and it drives me crazy.  Can someone please look at this and tell me what I'm doing wrong.  There is a font named Arial embeded in my library, the value to export As it is relevent to my document class part.  This does create a textfield, add to step, set the text and load an xml file, then try to change the text in the text field.  But the text does not change.

SerializableAttribute public class Main extends MovieClip {}

public static const EASE_TYPE: function = gs.easing.Sine.easeIn;
public static const paths: String = "EventData.xml;
public static const TWEEN_TIME: number =. 5;

public var _messageField: TextField;

private var _xmlLoader: URLLoader;
private var _currentIndex: number;
private var _messages: Array;
private var _times: Array;
private var _timer: timer;


public void Main(): void {}
internship. Align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.EXACT_FIT;
init();
}


private void init (): void {}
_times = new Array();
_messages = new Array();
_currentIndex = - 1;

_messageField = new TextField();
_messageField.selectable = true;
_messageField.width = 955;
_messageField.x = 15;
_messageField.y = 0;
_messageField.defaultTextFormat = new TextFormat (new .fontName () Arial, 12, 0xFFFFFF, false, false, false, null, null, TextFormatAlign.LEFT);
_messageField.antiAliasType = AntiAliasType.ADVANCED;
_messageField.embedFonts = true;
this.addChild (_messageField);

_messageField.text = "test 1 2 3..."

Load the xml file containing messages and sometimes to display.
_xmlLoader = new URLLoader();
_xmlLoader.addEventListener (Event.COMPLETE, onXMLload);
_xmlLoader.load (new URLRequest (XML_PATH));

}

private function onXMLload (e: Event): void {}

trace ("loading XML");
_messageField.text ="... 3 2 1 EFF;

trace (_messageField.text);

}

....

At this point, when I run the present I get a trace of "XML loaded" and «...» 1 2 3 tesT"but I always said text field" Test 1 2 3... "when it should say"...» 1 2 3 tesT' why does this happen?   It's as if the text field is not updated.  I wrote this project using CS4 and it worked fine. I'm now open TI/running with CS5, if it matters...

Any help would be appreciated!

When I test your code I see «...» 3 2 1 VET"in the textfield, as expected.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Pavilion dv2 laptop: how to connect as administrator

    I used my HP recovery disks to restore my laptop to condition factory & now want to install the updates of Windows (Vista), install programs, etc.  Vista updates are installed by Service Pack 2. I have installed/activated Microsoft Home & Student 200

  • Pavilion 17-e019dx Windows 8 guard reset itself to factory settings removes EVERYTHING! :(

    Hi everyone, I really need the helpful comments here, I m going crazy! I bought this computer HP Pavilion 17 laptop-e019dx at best buy not long... already have a problem with a windows 8.1 update, but anyway... I did a system restore and it is up to

  • LabVIEW 9.0 to 8.6

    Hello, I receaved a Labview VI in version 9.0, but I version 8.6 and I can't open it. Could someone please save the attached VI in versions 8.6 or previous post it back? Thanks a lot for your help.

  • My unique login window XP machine

    My XP machine now has a window of single connection instead of a screen with multiple icons for multiple users

  • push to pine table

    I have my PHP script job to push to a single PIN. I want to now push a group of pine trees. I'm formatting like the pins so $pin = array("x","y"); What is the proper way to format these pins?