Loading External text files

Im fairly new to flash and am currently working on a project that uses external text files loading into dynamic textfields.

Now this part is fine. when i preview the swf the text is displayed fine.

The problem is when i call the swf into the main interface movie the text is no longer displayed. The scrollbar looks like the text has been loaded but the actual text is not visible.

Can someone please point me in the right direction to resolve this.

Cheers

oh my gosh, i have the same problem! someone help!

What does your code look like?

well for the main.swf file, i have

loadMovie(“about.swf”, about);

and for the about.swf that is to be loaded into the main.swf i have the following for my dynamic text box…

loadText = new LoadVars();
loadText.load(“text.txt”);
loadText.onLoad = function()
{
scroller.text = this.bentext;
};

the about. swf has a dynamic text box, and i load text into it from a separte txt file. it loads fine when i just view the about.swf alone, but when i load the main.swf, only the scroll bars show…

OH WAIT I GOT IT! i duno why, but i looked at the properties for the text box.and i saw the button “character” i opened it up. selected “specify ranges” and highlighted “upper case” “lower case” “puntuaton” and it worked! strangley…i don’t know how tho…

You surely masked the text field. :stuck_out_tongue:

http://www.macromedia.com/support/flash/ts/documents/maskprintembed.htm
http://www.macromedia.com/support/flash/ts/documents/mask_device_fonts.htm

yep! thats what happened :wink: ah well got it now thanks

No problem. Just wanted you to know why it happened, in case you didn’t know already. :slight_smile: