Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-16-2003, 02:01 PM   #1
heyder
creative soloper
 
Join Date: Sep 2002
Posts: 43
Default assign result to variable to use later?

Wondering if I want to use the results of a "service call" (is that the right terminolgy?) later in a script do I need to assign it to a variable or does it already get stored as something?

ie...

ActionScript Code:
function getPeople_Result(result) {  peoplelist=result; }

ActionScript Code:
trace(peoplelist.items[0].name);
heyder is offline   Reply With Quote
Old 07-16-2003, 03:46 PM   #2
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

Since the returning object is a argument to the result handler, its scope is only valid in the result handler. Basically yes you need to assign it to a variable that can be accessed outside the function in order to use it later.
freddycodes is offline   Reply With Quote
Old 07-16-2003, 06:31 PM   #3
heyder
creative soloper
 
Join Date: Sep 2002
Posts: 43
Default

Thanks again.
heyder is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.