Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Web Service Results

Web Service Results

2004-03-16       - By marc vezina

 Back
Reply:     1     2     3     4     5  

Did you try:

var loadXML = function (result){
 trace("Results : "+ this.results);
}

_root.myWSC.trigger();
_root.myWSC.addEventListener("result", loadXML);

Cheers


-- --Original Message-- --
From: FODOR [mailto:fodor@(protected)]
Sent: March 16, 2004 2:59 PM
To: flashcoders@(protected)
Subject: Re: [Flashcoders] Web Service Results

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)




=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
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:107165
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)