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.