I haven't been able to find my code from an aborted project half a year ago, but this sounds familiar. Make sure to call validateNow() after setting htmlText each time. Also, before changing htmlText you might want to try setting htmlText to emptyString, calling validateNow() and then setting htmlText to the new value (and then calling validateNow() again as stated before). I'll see if I can find/remember more.
- Dan Freiman On 10/22/07, arpan srivastava <[EMAIL PROTECTED]> wrote: > > Hi Dan, > > > The html text i am trying to display is an rss description from this > site: > > " <http://feeds.reuters.com/reuters/businessNews> > http://feeds.reuters.com/reuters/businessNews"<http://feeds.reuters.com/reuters/businessNews> > > > Example: > > ----------------------------------------------------------------------- > > NEW YORK (Reuters) - Schering-Plough Corp on Monday reported third-quarter > profit and sales that fell short of Wall Street's target, sending shares down > more than 10 percent amid concerns about its flagship cholesterol drugs. > <p><a > href="http://feeds.reuters.com/~a/reuters/businessNews?a=9Gnn6X > <http://feeds.reuters.com/%7Ea/reuters/businessNews?a=9Gnn6X>"><img > src="http://feeds.reuters.com/~a/reuters/businessNews?i=9Gnn6X > <http://feeds.reuters.com/%7Ea/reuters/businessNews?i=9Gnn6X>" > border="0"></img></a></p><div class="feedflare"> > <a href="http://feeds.reuters.com/~f/reuters/businessNews?a=4xsIkSA > <http://feeds.reuters.com/%7Ef/reuters/businessNews?a=4xsIkSA>"><img > src="http://feeds.reuters.com/~f/reuters/businessNews?i=4xsIkSA > <http://feeds.reuters.com/%7Ef/reuters/businessNews?i=4xsIkSA>" > border="0"></img></a> <a > href="http://feeds.reuters.com/~f/reuters/businessNews?a=G10Pj2a > <http://feeds.reuters.com/%7Ef/reuters/businessNews?a=G10Pj2a>"><img > src="http://feeds.reuters.com/~f/reuters/businessNews?i=G10Pj2a > <http://feeds.reuters.com/%7Ef/reuters/businessNews?i=G10Pj2a>" > border="0"></img></a> <a > href="http://feeds.reuters.com/~f/reuters/businessNews?a=iu8OJAa > <http://feeds.reuters.com/%7Ef/reuters/businessNews?a=iu8OJAa>"><img > src="http://feeds.reuters.com/~f/reuters/businessNews?i=iu8OJAa > <http://feeds.reuters.com/%7Ef/reuters/businessNews?i=iu8OJAa>" > border="0"></img></a> > > </div><img > src="http://feeds.reuters.com/~r/reuters/businessNews/~4/173339751 > <http://feeds.reuters.com/%7Er/reuters/businessNews/%7E4/173339751>" > height="1" width="1"/> > > > ----------------------------------------------------------------------- > > > from this description i am removing all the tags not supported by > textarea.Now when i select some other feed from the url i get the error or > sometimes when i change the url? > > > > Daniel Freiman > Sat, 20 Oct 2007 10:12:08 -0700 > > Are you trying to reference an image/id that's already displayed somewhere > else in the flex movie? Can you give an example of the htmlText that you > are trying to set? > > - Dan Freiman > > On 10/20/07, arpan srivastava <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > I am pasting a mail below. I am facing the same problem while > > displaying html in textarea. I didn't find any answers to this. Can anyone > > help with problem? > > > > --------------------------Message----------------------------- > > > > I'm working on a quick little RSS Reader and having some trouble. > > > > I've got a DG on one side, which then populates a textArea on the other > > side. > > > > Here's the feed (mine) http://www.red-omega.com/blog/rss.cfm?mode=full > > > > When I hit the entry "Blogito Ergo Sum" when I click to entry in the DG I > > get the below. > > > > It seems to happen when entries have images linked from other sites. > > > > [SWF] Users:johnwilker:Documents:Flex Builder 2:360FlexRSS:bin: > > main-debug.swf - 972,300 bytes after decompression > > getting the feed: http://www.red-omega.com/blog/rss.cfm?mode=full > > You Selected index: 7 > > You Selected index: 8 > > ArgumentError: Error #2025: The supplied DisplayObject must be a child of > > the caller. > > at flash.text::TextField/set htmlText() > > at > > mx.core::UITextField/sethtmlText()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UITextFi > > eld.as:319] > > at mx.controls::TextArea/mx.controls:TextArea::commitProperties > > ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\TextArea.as:1841] > > at > mx.core::UIComponent/validateProperties > > ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5300] > > at > > mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517] > > > > at > > mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation > > ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:667] > > at Function/http://adobe.com/AS3/2006/builtin::apply() > > at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2 > > ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909] > > at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher > > ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852] > > at flash.utils::Timer/flash.utils:Timer::_timerDispatch() > > at flash.utils::Timer/flash.utils:Timer::tick() > > > > Any thoughts? > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > >

