Groups | Blog | Home
all groups > macromedia flash flash remoting > april 2005 >

macromedia flash flash remoting : Returning custom objects with asp.net


mossu
4/14/2005 10:04:21 PM
Hi, I'm quite new to Flash remoting, and I am trying to return an object that I
created in ASP.Net and every example I can find only returns strings.

Let's say I have this class in a loadPerson.aspx page, is it the proper way to
use this functionnality? :

Public Class Person

Private mvarName As String

Public Property Name() As String
Get
Return mvarName
End Get
Set(ByVal Value As String)
mvarName = Value
End Set
End Property
End Property

<Macromedia:Flash ID="Flash" Runat="Server" />
Dim oMother As New Person
oMother.Name = "Julie"
Flash.Result = oMother

Then, how can I access the object properties once it is returned in the
function loadPerson_Result(result) ?

Thanks a lot.

jG

tutsamewasa
4/18/2005 12:00:00 AM
Hi,


Well you just can't send any object to and fro Remoting. The objects
that you can send to and fro Remoting must be in the list of both the
language like the String is supported in both Flash and .Net, To return
complex data like in the example you have given use XML object.


Hope this helps


If you need further assistance please let me know.


Good Luck


Hemendra Singh Shaktawat


Mindfire Solutions
www.mindfiresolutions.com



mossu
4/18/2005 12:00:00 AM
Thank you for your answer Hemendra (I hope this is your first name, and I
apologize in advance if it isn't).

I think this might help, and I'll be sure to check soon if I can make it work
for me. If I have any other questions, I'm glad to know I can ask someone now.

Thanks again, jG


tutsamewasa
4/18/2005 2:33:11 AM
Hi,

Well you just can't send any object to and fro Remoting. The objects
that you can send to and fro Remoting must be in the list of both the
language like the String is supported in both Flash and .Net, To return
complex data like in the example you have given use XML object.

Hope this helps

If you need further assistance please let me know.

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com
AddThis Social Bookmark Button