all groups > macromedia flash sitedesign > june 2003 >
You're in the

macromedia flash sitedesign

group:

What Am I Doing Wrong? Loading Ext Text Files


What Am I Doing Wrong? Loading Ext Text Files weisbach
6/29/2003 1:58:26 AM
macromedia flash sitedesign:
I am pretty new to Flash. I am trying to create a dynamic text box that loads text from an external text file (see attachment). I have a movie clip (junk.fla), which has the dynamic text field and the actionscript for this. I can make it work if I put the dynamic text box in the main timeline, but when it's nested within an MC placed in the main timeline the text box is empty. I also want the dynamic text box to recognize the HTML tags in the text file but that is not working either. Please help!!! I am trying to design my first flash site and I am stuck on this one.

Ultimately what I want to do is have a main swf that loads other swf's, one of them containing the dynamically loaded text. I tried this but it never worked, so I am taking a step back and first trying to make this swf work and then load it into the main swf.

Any help is greatly appreciated. Please take a look at the attached files. jorgemedrano75@hotmail.com

http://webforums.macromedia.com/attachments/dynamicText11.zip

Re: What Am I Doing Wrong? Loading Ext Text Files henri
6/29/2003 11:37:35 AM
I would first name all instances .
Then I would delete (in Sections)

loadVariables("testtext.txt", "_root.subcontainer.sections.text");

and replace it with the following on the main timeline:
instanceName. loadVariables("testtext.txt");
Replacing "instanceName by whatever you choose as name.

Hope it helps (and works :))

Henri


AddThis Social Bookmark Button