Re: [flexcoders] Error 2025 with images in TextArea?
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. lt;pgt;lt;a href=http://feeds.reuters.com/~a/reuters/businessNews?a=9Gnn6X http://feeds.reuters.com/%7Ea/reuters/businessNews?a=9Gnn6Xgt;lt;img src=http://feeds.reuters.com/~a/reuters/businessNews?i=9Gnn6X http://feeds.reuters.com/%7Ea/reuters/businessNews?i=9Gnn6X border=0gt;lt;/imggt;lt;/agt;lt;/pgt;lt;div class=feedflaregt; lt;a href=http://feeds.reuters.com/~f/reuters/businessNews?a=4xsIkSA http://feeds.reuters.com/%7Ef/reuters/businessNews?a=4xsIkSAgt;lt;img src=http://feeds.reuters.com/~f/reuters/businessNews?i=4xsIkSA http://feeds.reuters.com/%7Ef/reuters/businessNews?i=4xsIkSA border=0gt;lt;/imggt;lt;/agt; lt;a href=http://feeds.reuters.com/~f/reuters/businessNews?a=G10Pj2a http://feeds.reuters.com/%7Ef/reuters/businessNews?a=G10Pj2agt;lt;img src=http://feeds.reuters.com/~f/reuters/businessNews?i=G10Pj2a http://feeds.reuters.com/%7Ef/reuters/businessNews?i=G10Pj2a border=0gt;lt;/imggt;lt;/agt; lt;a href=http://feeds.reuters.com/~f/reuters/businessNews?a=iu8OJAa http://feeds.reuters.com/%7Ef/reuters/businessNews?a=iu8OJAagt;lt;img src=http://feeds.reuters.com/~f/reuters/businessNews?i=iu8OJAa http://feeds.reuters.com/%7Ef/reuters/businessNews?i=iu8OJAa border=0gt;lt;/imggt;lt;/agt; lt;/divgt;lt;img src=http://feeds.reuters.com/~r/reuters/businessNews/~4/173339751 http://feeds.reuters.com/%7Er/reuters/businessNews/%7E4/173339751 height=1 width=1/gt; --- 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
[flexcoders] Error 2025 with images in TextArea?
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/set htmlText()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UITextField.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
Re: [flexcoders] Error 2025 with images in TextArea?
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
[flexcoders] Error 2025 with images
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
Re: [flexcoders] Error 2025 with images
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
[flexcoders] Error 2025 with images?
I'm working on a quicky 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\UITextField.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? -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com / www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc