• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Handling Events > Scope of the this keyword

Scope of the this keyword

The this keyword refers to the object in the currently executing scope. Depending on what type of event handler technique you use, this can refer to different objects.

Within an event handler or event listener function, this refers to the object that defines the event handler or event listener method. For example, in the following code, this refers to my_mc:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint