Flash FMS SharedObject.send()

When i attempt to use he shared object method send(“someFunction”,“some value”) i get this error :

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
 flash.net.SharedObject was unable to invoke callback someFunction.
 error=ReferenceError: Error #1069: Property someFunction not found on
 flash.net.SharedObject and there is no default value.

Now im assuming this happens because instead of just defining the function in the document class i some how need to attach it to the shared object as a callback. I cant find how to do this anywhere and the adobe live docs are no help either. So if anyone has an idea of how to attach a callback function id be very greatful.

thanks.

Found The Answer

In case anyone is having the same problem i finally found the answer here after a ton of digging around: http://groups.google.com/group/macromedia.flash.flashcom/browse_thread/thread/7d97a6670bf595cc

you have to explicitly set the netConnection object’s client to the object you want to handle the callbacks. ie:

myNetConnection.client = this;

despite the adobe live docs saying it defaults to “this” it will not work unless you explicitly set it.

Thanks so much. Been trying to figure this out myself in the last few hours.