This stuff should work. Can you try running through the XML and removing the \r\n so that you only have \n (which ideally you'd reduce down as well).
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan W. Phelps Sent: Friday, March 24, 2006 12:12 AM To: [email protected] Subject: [flexcoders] Flex 2: passing XML string via ExternalInterface produces unterminated string I'm trying to pass an XML string to the hosting page via ExternalInterface.call, however, before I even get into my JavaScript function, I'm encountering an "unterminated string constant" error. Here is the flow of events: An HTTPService requests an XML file on the server, the ResultEvent.result is passed as an argument via a call to flash.external.ExternalInterface.call() method. When I debug the script in the browser, the breakpoint in my function is never reached due to the "unterminated string constant" error so I surmise this is occurring in the ExternalInterface produced JavaScript. I have tried changing the resultFormat on the HTTPService to text, e4x, and object all which produce this same error. If I change the resultFormat to XML, then I don't get the error and I do hit my breakpoint, but I can't seem to get anything from the object passed to me. None of the methods or properties of XMLNode seem to produce anything--nor does toString(). -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

