markymark Posted August 8, 2006 Share Posted August 8, 2006 I would like to display an external text file in a dynamic text field. I have set up the text field (textField_txt) on the screen, the external text block (textFile.txt) is in the same level as the .fla and .swf file and in a 'actions' layer i have the following code:// Load text as variable and asign it to dynamic text fieldFeatures_lv = new LoadVars();Features_lv.onLoad = onText;Features_lv.load("textFile.txt");function onText() { textField_txt.text = Features_lv.textFile;}When i publish this file, i get 'undefined' where the text block should be!!Any Ideas where I am going wrong???TIAMarkymark Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now