all groups > macromedia flash flash remoting > august 2004 >
You're in the

macromedia flash flash remoting

group:

Object Instance does not Persist


Object Instance does not Persist mrism
8/26/2004 1:18:00 PM
macromedia flash flash remoting:
Hi

I am developing an application using FlashRemoting for .Net.
My issue is -
=> I have a method in .net which initializes an object-instance.
=> I have another method which uses the object-instance created by first method
=> My flash application calls the first method and the object-instance is
created.
=> When my flash application calls the second method i get an ERROR message
that the object-instance does not exist.

function void method1(int id)
{
tc = new TestClass(id);
}

function int method2()
{
tc.getId();
}

This doesn't work because Remoting say that "tc doesn't exist". Also let me
tell you that "tc is declared as PUBLIC", so there should not be any
accessibility problem either. When I test those methods by calling them using
..net methods then I don't get that error and the object-instance is created.
But when I do it using FlashRemoting I get the error. The problem occurs only
when I call those methods from Flash, it all works fine when I test it with
..Net.

I am not able to figure out why is this happening. Can anyone throw some light
here???

Thanks.


Re: Object Instance does not Persist Trajik
8/31/2004 3:27:04 AM
Unfortunately, I don't have sufficient experience with .NET to help you as I
work mostly with ColdFusion and Flash. However, I do want to commend you on
explaining your issue very well and providing good information in your post to
aid someone in providing a solution.
Re: Object Instance does not Persist mrism
9/1/2004 11:14:07 AM
Hi Aron, thanks for understanding the issue. But unfortunately for me I still
don't understand why this is an issue - and yet and unsolved issue. Has anyone
who worked with .net/flash, used the object instance in different methods from
via Remoting which was created by other methods?
AddThis Social Bookmark Button