I was wondering if there is any possibility to get bytes of an xml loaded text into a dynamic textfield that’s inside a movieclip. So, let’s say I have a movieclip that has the instance name movie (inside of it are two layers: a background layer and a text layer) and the dynamic textfield inside it is textfield. For
var total = movie.getBytesTotal();
trace(total);
the output is a value like, let’s say, some hundreds of bytes. For
var total = movie.textfield.getBytesTotal();
trace(total);
the output is “undefined”.
The same happens for getBytesLoaded() - for movie.getBytesLoaded(); the output value is identical with the value of movie.getBytesTotal();
I want to do this because I want to preload the loading of that *.txt file. I also mention that the *.txt file has some html behavior (of course, textfield.html is set to true), I mean inside the *.txt file there are <img src="…"> tags for images in the text. When I simulated download, for larger *.txt files with 4-5 images in it, it takes a while to load so, I prefer to preload that somehow. Is there any possibility to do that?
Please give me a clue…