  | | | Web Service Results | Web Service Results 2004-03-16 - By FODOR
Back You could try something like:
var loadXML = function (result){ traceObject(result) } function traceObject(aObject){ for(var i in aObject){ if(typeof(aObject[i] =="object"){ traceObject(aObject[i]); } else { trace(i+": "+aObject[i]); } } }
(16/03/04 20:21) Keith L. Miller wrote:
> I am returning a string from a ColdFusion WebService to my flash app using > the code below: > > var loadXML = function (result){ > trace("Results : "+result); > } > > _root.myWSC.trigger(); > _root.myWSC.addEventListener("result", loadXML); > _root.myWSC.addEventListener("status", sta); > > The connection works fine and the loadXML function runs, but when I trace > result, I get: > > [object Object] > > I need to be able to see the result sent back. How can I see what is inside > of the object? > > Thanks, > > Keith > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Supported by Fig Leaf Software > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Be sure to check the archives and the wiki: > http://chattyfig.figleaf.com/ > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107127 > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe send a blank e-mail to: > Normal Mode: flashcoders-unsubscribe@(protected) > Digest Mode: flashcoders-digest-unsubscrive@(protected) >
-- ---- ---- ---- ---- ---- ---- ---- ---- Pascal FODOR -- ---- ---- ---- ---- ---- ---- ---- ---- fodor@(protected) // flash@(protected)
****************************************** Visit: http://fodor.liane.net
Flash AV Players can be seen at: http://fodor.liane.net/flash_AV_players/ ******************************************
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107129 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |