Flash Dynamic Text Problem

Associate
Joined
9 Sep 2008
Posts
40
Location
Moira, East Midlands
I am adding a EULA text field into a flash project that calls the text from an external text document (notepad - I've tried Unicode, ANSI & UTF-8, and also embedded the fonts).

I can get it to call and display the text, with scroll bars, but it doesn't call the entire document. Is there a limit to the amount of words/letters or size of document that dynamic text can call in one event?

My cods is:
myData = new LoadVars();
myData.onLoad = function() {
eula_txt.text = this.eula;
};
myData.load("EULA.txt");

Dynamic text is set to Multiline (with wrap), and there's also a vertical scroll bar. The text will scroll up to a point.

If I decrease the font size it still only displays the same amount of text.

I've also tried myData.maxChars = null, to remove any limit on the number of characters allowed - still the same.

please help!
 
IIRC loadvars has a size limit of 64kb of data - how big is the EULA? If it's over 64k I'm not really sure what you can do, other than split it into multiple text files and load them into seperate dynamic text boxes.

Also, I've heard of '=' causing issues with loadvars. A workaround may be to make the dynamic box accept HTML and then encode the equals sign as &# 61 - without the space, I can't do it here without it being encoded :)
 
Last edited:
Its not that they have issues with it, its that & signifies the start of a new variable. Eg

&var1=Test&var2=Test2 etc
 
Back
Top Bottom