Make sure the textfield is set to "dynamic". In the properties of the textfield, there is a spot for "variable". This is the variable that it will look for in your txt file. Let's say your variable is "myVar". In your txt file, your content should be like this: "myVar=Text I want To Display". Without quotes of course.
Try that and see if it helps. ------Original Message------ From: Alan Neilsen Sender: [email protected] To: '[email protected]' ReplyTo: Flash Coders List Subject: [Flashcoders] getting text from textfile.txt into a dynamic textfield Sent: Nov 23, 2009 3:51 PM In CS4 (AS3) I have a simple text file for my client to easily update their text content. I found the method var loader:URLLoader = new URLLoader(new URLRequest("textfile1.txt")); that is supposed to load data from the external text file, but I can't work out what I need to do to then get that text into a dynamic text field. Can anyone please give me a simple example of how to do this. Alan Neilsen This message is for the named person’s use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or; lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer [email protected] 254.749.2525 www.mynarcik.com _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

