it doesn't negate it. Consider this:
You have 3 objects in a parent object and only one of those is required to have mouse events attached to it. The parent object holds no named reference of these objects so there has to be a system to apply the events in a standalone manner.
I initiate a mouseDown event listener on the appropriate child. When you mouse down, whatever had the event attached to it then has the Up/Over/Out events attached to it. Understand that this is component specific. The Caption component is the one to make these decisions. There are definitely other ways to handle objects which are mouse interactive but, for this case this is a very clever way.
Without ever telling the parent - do X to specific.Object or ever even making a specific.Object I get the same functionality as if I built a static element with named children.
When I explain my button code and how it inherits the same interface but utilizes it differently you'll really get the idea of how my Objects are all concepts. I'm creating interactive elements from nothing but the basic idea of them.
Not trying to toot my own horn (fuck it "toot") but, the code is pretty sick.
edit:
oh yeah it's not 20000 lines. I added final line numbers for my entire code and it was only 8600 and some change. So, I was way off.
You have 3 objects in a parent object and only one of those is required to have mouse events attached to it. The parent object holds no named reference of these objects so there has to be a system to apply the events in a standalone manner.
I initiate a mouseDown event listener on the appropriate child. When you mouse down, whatever had the event attached to it then has the Up/Over/Out events attached to it. Understand that this is component specific. The Caption component is the one to make these decisions. There are definitely other ways to handle objects which are mouse interactive but, for this case this is a very clever way.
Without ever telling the parent - do X to specific.Object or ever even making a specific.Object I get the same functionality as if I built a static element with named children.
When I explain my button code and how it inherits the same interface but utilizes it differently you'll really get the idea of how my Objects are all concepts. I'm creating interactive elements from nothing but the basic idea of them.
Not trying to toot my own horn (fuck it "toot") but, the code is pretty sick.
edit:
oh yeah it's not 20000 lines. I added final line numbers for my entire code and it was only 8600 and some change. So, I was way off.
Comment