Man I hate to put it to you like this man but I am SICK of your condescending attitude.
First of all you should thank the people here who have been helping you improve your plug-in instead of constantly berating whether they can pick up a spoon every time they are asking a question.
I am so SICK of your attitude that I really hope I can restraint myself from replying to your thread ever again.
Frankly, you are not that smart yourself, your code is an extrapolation of at least three existing construct 2 plug-in on further inspection and you did NOT once give ANY credit to the developer you rip the idea off of, I am not going to name names, you really should do the right thing yourself before you got found out anyways.
========================================================================
One:
valerypopoff
I don't think that you actually meant polymorphism. Polymorphism means something else.
========================================================================
First of all, it means EXACTLY what I say it means, I said it is a form of "extends", let me just bring out one example, this applies to any programming language that support it and not just AS3.
adobe.com/devnet/actionscript/learning/oop-concepts/polymorphism-and-interfaces.html
Notice method two, the usage of "extends" to create Polymorphism.
So, to use the same attitude you have been using towards everyone here, do you even know what Polymorphism is ?
The audacity to say it have nothing to do with extends is not only incorrect, but misleading to anyone who is trying to learn programming beyond drag and drop Construct 2.
You are not really as smart as you paint yourself up to be so I would suggest your tone down your baseless constant need to put people down.
========================================================================
Two:
valerypopoff
I don't know what you mean by "make instance of a sprite HAVE an instance of js class". You certainly can if you just imagine that this is the case. Create two instances of a sprite. Create two instances of a js class. Done. They HAVE each other. Do whatever you want with them.
========================================================================
That would defeat the very purpose of object orientated programming, that would defeat the whole reason why I would even create a class for a sprite in the first place which is what your plug-in will be use for.
The idea is for every new sprite/object spawned, it will have its own base class during runtime, not just and only during editing.
You mentioned your plug-in is to be used for the "view-model-controller" model, I hate to break it to you man, but since you are absolutely insidious on anyone who even ask you a question, any question at all and have seemingly no respect to your user at all, I am going to give you a feel of your own speech and to you, do you even know what true view model controller actually is ?
I have been programming using Objective-C using XCode and the way it works is the true assertion of the "model-view-controller" framework and your plug-in ain't it.
Your plug-in could be used to extend a sprite, but seeing that your answer is first to insult my intellect and then proceed to say the most ridiculous answer which is manually create a class for each object during editing time, dude, all I am going to say is, you are really not as smart as you make yourself up to be and that is putting it mildly.
I am done with your condescending attitude and I am going to restrain myself from replying from now on.