what are the differences between '.this' and '.stage'?
I've searched, found nothing :(
Printable View
what are the differences between '.this' and '.stage'?
I've searched, found nothing :(
Well I can't be 100% positive, but this refers to the current object. It will change based on which class or level you are current at. Within a class, this will refer to the class itself. Stage refers the main displayObjectContainer. This is the area in which all displayObject are added to.
I know someone can explain it better, but that is how I understand it.
thanks samac, I believe I got the idea.
Perhaps the "stage" of an object could be defined as any area (of the object) not inhabited by graphics or other "physical" objects??? :)
Edit: Well, I guess that's fine for MouseEvents & such, but in terms of something like KeyboardEvents, it's more like a ghost with an event listener on it!