Inspectable getter/setter object

Hey all. This is killing my brain atm.

I’m trying to have an inspectable object in a class. For some reason…I can’t figure out how to make this work. Below is what I have so far:


[Inspectable(type=Object, defaultValue="a:5,b:6")]
    public function set myObject(obj:Object){
        __myObject = obj;
        trace(o.a)
        trace(__myObject)
        trace(__myObject.a)
        
    }
    public function get __myObject():Object{
        return __myObject;
    }

the resulting trace is as follows:
undefined
[object Object]
undefined

shouldn’t the first and second trace traceout the number 5?

The odd thing is that if i change the whole thing to a number, and use a number as the defaultValue, it will trace out fine. But as soon as I try for an object it gets muddled up.

Any help would be greatly appreciated.