LoadVars() Limitation on filesize?

Hi All,
I’m having an issue with some actionscript regarding the amount of text I’m able to load into a scrolled textbox. I’ve followed Kirupa’s tutorial, and it works for the most part. The problem is that this will be a CMS (Content Management System) and I don’t want my client to write so much that it doesn’t show up. I’ve tested using Lorem Ipsum up to 15k, but the problem is that I don’t even get 5k worth of data even though my text files have well over that in them (tried it with different files).

Here’s my code (slightly modified from Kirupa’s, but the same thing essentially):


datacore = new loadVars();
datacore.load(“company.txt”);

datacore.onload = function() {
copy.text = this.datatext;
}

stop();

(The stop action is there to stop it from playing right into the next frame labled area).

I’m getting approximately 4, maybe 5k worth of data from this text file, but definately not the whole thing - it just stops after a certain amount. I’ve tried it with 2 different files, both of them stop in about the same place bytesize-wise.

Any thoughts?

Thanks everyone.

post ur txt file here.

Actually, I just figured it out. What happened was I had two instances of the same text field, both with the instance name “copy” (for body copy text). Evidently, when it initialized and loaded the first set of copy, it set a “limit” on the size of data in the text box, so when I went to the next frame label, that was the same text box, but with different data. I changed the instance names and the actionscript to reflect it, and now it works perfectly.

However, I do have one other question: in the future, if my client writes their data and submits it through my PHP programming, are there any certain characters I should probe for in their typing? i.e. wouldn’t a & character screw stuff up?

Thanks.