Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / June 2005



Tip: Looking for answers? Try searching our database.

Returning value from myFunction_result

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mshaheen220 - 07 Jun 2005 21:45 GMT
I have a simple remoting call that returns a user name based on a supplied ID.
It works fine if within myFunction_result I set the value of a text field to
the return value of the function. But, I don't want to set a specific textfield
with the value. Instead, I'd like to return the value of the function to a
different variable each time that function is called. Any ideas?

i.e.:

function getStudentName_Result(data) {
    //this line does not work   
     return data;

    //this line will work
    sometextfield_txt.text = data;
}
tutsamewasa - 09 Jun 2005 08:00 GMT
Hi Shaheen,

The "xyz_Result" and "xyz_Status" functions are a kind of CallBack function
that are called from your Remoting application in response to a remoting
request. So there is no return in that. And if you even try to return you are
trying to return to your Remoting application and not to flash that is not
possible.

What you can do is you can call another function/s from the xyz_Result based
on the conditions if you have to set any variable or to perform any other task
that you want to perform after the Remoting call.

Hope this helps

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com
tutsamewasa - 09 Jun 2005 08:03 GMT
Hi Shaheen,

The "xyz_Result" and "xyz_Status" functions are a kind of CallBack function
that are called from your Remoting application in response to a remoting
request. So there is no return in that. And if you even try to return you are
trying to return to your Remoting application and not to flash that is not
possible.

What you can do is you can call another function/s from the xyz_Result based
on the conditions if you have to set any variable or to perform any other task
that you want to perform after the Remoting call.

Hope this helps

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.