|
-
Dynamic Textbox bugginess
I've got a movieclip with a blank dynamic textbox inside. On frame 1 of this movieclip, I have the actionscript to load the contents of an external .txt file into the dynamic textbox. The problems are:
1. I have an <img> tag in the external .txt that doesn't work (actually, the text does wrap around where the img is supposed to be in the dynamic textbox, but the img itself is not appearing.
Problem 2. All <p> tags don't work, but <br> does.
Problem 3. I have an ampersand (&) in the .txt file and all text is cut off at that point when loaded into the dynamic textbox. I've tried escaping it (\&) and using & to no avail.
Trying to resolve these has eaten up most of my morning - I finally decided to ask for help (always a last resort).
Anyone else know what else I can try? Thanks...
-
Senior Member
Wud it be possible for u to upload your FLA along with ur external txt file so that we can check and resolve if possible....loading image in dynamic text box sounds quite abnormal.....but yes, we can give it a try or look for an alternative!
Last edited by vinayak.kadam; 07-30-2009 at 07:52 AM.
Reason: added!
As ever,
Vinayak Kadam
-
Hi - thanks for responding.
Here are the solutions I found:
- Using onData instead of onLoad fixes the ampersand issue.
- Making sure every paragraph starts and ends with <p> and </p> (I didn't <p> the first paragraph). Also, the text field has to be set to multiline and wordwrap (I'd already done this, but I found in my research that others with this same issue had neglected to set those options). Also, I found I can eliminate the <p> tag altogether and just enter a hard-return in the .txt file to start a new paragraph.
- The <img> issue was resolved weirdly enough by deleted the dynamic textbox in question and recreating it.
Hope this info helps others!
-
Vinayak - yes, an external image can indeed be embedded in a dynamic textbox via the htmlText setting, using the <img> tag (the same way you would in a regular html doc).
Supposedly it can also be done with an image in the Flash doc's library, but I haven't tried that (yet) and so cannot advise.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|