Thanks for your reply.
I see. How would I do this? I mean, if I assign an object to something, the reference count of that object should increase by 1..but I don't think I can capture the assigning event. If you could point me to some resource on how this can be done that would be very helpful. Thanks again
1 person found this helpful
Every time you assign the object you also call addRef
Every time you unassign the object you call removeRef and check to see if refCount hits 0.
It is a lot of work, but not any more than knowing when to call delete in C++
Flex SDK Developer
Adobe Systems Inc.
Thanks again for your response. I am writing a library that users would use to work with our framework. I don't think they'll take it well to ask them to call addRef and removeRef each time.
If anyone has a better idea, please do let me know!