I too have noticed this issue. If you use resultFormat="e4x" in your mx:HTTPService tag, you get the entire XML doc as your datatip. If you omit the resultFormat (and use the default object methodology), then the datatip works perfectly. That is an imperfect solution, however, if you are interested in utilizing e4x.
Oh yeah, I tried Flexy's solution, but it only seems to work for charts. If I'm using a DataGrid, then I get the following error: TypeError: Error #1034: Type Coercion failed: cannot convert XML@40e6929 element <resource id="200601" name="blah" type="service" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> to mx.charts.HitData.
One other question, I noticed that when using objects as opposed to e4x, if you have an xml tag with a numeric value of "1.0", the e4x treats it as a string and displays "1.0", however the object treats it as a number and displays "1". Is there a way to cast the object so that it displays "1.0" instead. I couldn't get it to work.
Thanks.
Last edited by glacts; 08-23-2006 at 09:34 PM.
|