# Proxy and Namespaces

**URL:** <https://forum.kirupa.com/t/proxy-and-namespaces/300014>\
**Category:** flash\
**Created:** [November 14, 2009, 12:14pm UTC](https://forum.kirupa.com/t/proxy-and-namespaces/300014 "2009-11-14T12:14:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [November 14, 2009, 12:14pm UTC](https://forum.kirupa.com/t/proxy-and-namespaces/300014/1 "2009-11-14T12:14:43Z")

</div>

Not sure how to describe this well…

Is there any way to find out the namespace of functions or properties that are being “intercepted” by the Proxy class?

I’m hoping to do something like the following (non-essential code removed):

```auto
public class ObjectArray extends Proxy
{
   public static const ADD:String = "add";
   public static const SUB:String = "sub";

   //<constructor here>

   override flash_proxy function setProperty(name:*, value:*, namespace:*):void {
      switch (namespace)
      {
         case ObjectArray.ADD:
            for (var i:int = 0; i < obArr.length; i++)
               { obArr*[name] += value; }
            break;
         case ObjectArray.SUB:
            for (var i:int = 0; i < obArr.length; i++)
               { obArr*[name] -= value; }
            break;
      }
   }
   
}

```
