# Flash FMS SharedObject.send()

**URL:** <https://forum.kirupa.com/t/flash-fms-sharedobject-send/263485>\
**Category:** flash\
**Created:** [June 16, 2008, 4:06pm UTC](https://forum.kirupa.com/t/flash-fms-sharedobject-send/263485 "2008-06-16T16:06:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greggreg](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@greggreg](https://forum.kirupa.com/u/greggreg)\
**Post date:** [June 16, 2008, 4:06pm UTC](https://forum.kirupa.com/t/flash-fms-sharedobject-send/263485/1 "2008-06-16T16:06:32Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![greggreg](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@greggreg](https://forum.kirupa.com/u/greggreg)\
**Post date:** [June 16, 2008, 6:15pm UTC](https://forum.kirupa.com/t/flash-fms-sharedobject-send/263485/2 "2008-06-16T18:15:38Z")

</div>

**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](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.

---

<div class="post-metadata">

**Author:** ![kms10b](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kms10b](https://forum.kirupa.com/u/kms10b)\
**Post date:** [July 2, 2008, 11:25am UTC](https://forum.kirupa.com/t/flash-fms-sharedobject-send/263485/3 "2008-07-02T11:25:09Z")

</div>

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