I had problems in a project with img tags not refreshing properly. What I had to do was set text or htmlText to "" and then call validateNow() on the textArea (actually you want to call it on the UITextField within the textArea but I think this will be done by the textArea) and then set the htmlText to what you want.
hope it works, - Dan Freiman On 26 Mar 2007 02:21:49 -0700, polestar11 <[EMAIL PROTECTED]> wrote:
Hi there This question was previously asked on Flexcoders and not addressed: http://tech.groups.yahoo.com/group/flexcoders/message/64576 I have dug futher into the problem & know what may be causing it. Here is a description of the problem: I load html text into a textarea. I then edit the text & try to set a new htmlText value to the textarea, which results in the following exception: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.text::TextField/set htmlText() This only happens if my htmlText contains an 'img' tag. What I think is happening is that the player is struggling to delete the old image object that was created thought the 'img' tag, possibly because it isnt an explicit child of the textarea. The only way that I have found to get around it is by dynamically creating & deleting a textarea: http://www.actionscript.org/forums/showthread.php3?t=85011 This solution is not ideal since my textarea is quite intricately defined in my MXML markup. Does anyone know of a better cleaner solution? Cheers Tracy

