I am facing very weired problem. I have tried and had success loading an img into a dynamic textField at run time. But sometimes it takes littile long to load img and gives me an impression that image is not getting loaded.
My textFields html, multiline, autoSize, wordWrap properties are set to TRUE. But still sometimes i dont get my image loaded in to the textField.
Is there anyway i can handle this? Or Is there any way i can trace this issue? My images are also having size of max 7kb.
I tried answering this question, but couldn’t hit ‘sumbit’ for some reason…let me try again (but shorter than my original reply):
Have you tried using either the onLoad or the onData method for the LoadVars class (assuming you use an LoadVars object to load that data) ?
Cause if you don’t, you might create a function that passes a success parameter that will display the content ONLY if the file has been fully loaded…So you don’t have to wait for the text to load into the textfield and then for the image.
I might be wrong, but I assume that any externally linked files in htmlText are included in the LoadVar’s totalBytes…
If that’s what you’re looking for I can send you/post a code example for you.