# Easy Shared Objects

**URL:** <https://forum.kirupa.com/t/easy-shared-objects/190768>\
**Category:** open source\
**Created:** [June 14, 2006, 4:19pm UTC](https://forum.kirupa.com/t/easy-shared-objects/190768 "2006-06-14T16:19:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nugget](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nugget](https://forum.kirupa.com/u/nugget)\
**Post date:** [June 14, 2006, 4:19pm UTC](https://forum.kirupa.com/t/easy-shared-objects/190768/1 "2006-06-14T16:19:32Z")

</div>

This may not be my best experiment but I made a class that can easily handle Shared Objects with simple methods.

```auto

trpSharedObj.getObject(name_of_object); // A STRING FOR NAME
trpSharedObj.removeObjects(names_of_objects); //STRINGS IN ARRAY
trpSharedObj.removeAllObjects();
trpSharedObj.setObjects(names_of_objects,values_for_names); //BOTH ARE ARRAYS
[FONT=Courier New][/FONT]

```

Here is the class and the example fla. If it needs improvements or has bugs let me know.
