# Overriding Non-AS3 Namespace Accessor Methods Using Class Prototypes

**URL:** <https://forum.kirupa.com/t/overriding-non-as3-namespace-accessor-methods-using-class-prototypes/227756>\
**Category:** flash\
**Created:** [June 1, 2007, 7:52pm UTC](https://forum.kirupa.com/t/overriding-non-as3-namespace-accessor-methods-using-class-prototypes/227756 "2007-06-01T19:52:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [June 1, 2007, 7:52pm UTC](https://forum.kirupa.com/t/overriding-non-as3-namespace-accessor-methods-using-class-prototypes/227756/1 "2007-06-01T19:52:45Z")

</div>

> If you do not use the AS3 namespace, an instance of a core class inherits the properties and methods defined on the core class’s prototype object.  
> Is it possible to redefine the accessor methods for a property of a core class instance by using the prototype object of that class while using the ECMAScript/non-AS3 namespace? For example, could DisplayObject#_mouseX_ be redefined this way?

I would guess that it isn’t possible, as there isn’t really an analogous prototype-based syntax for the accessor method definition syntax. It would be pretty neat if this could be redefined, though, which is why I am asking. :bounce:

Also, how are accessor methods (internally) defined for core classes when not using the AS3 namespace?
