var self = this;
That would put the timeline's 'this' value into the 'self' variable, so that inside the function it will cause the timeline to go to frame 10. The other way is to use 'bind', which will make the function use the timeline's value for 'this'.
Colin Holgate wrote:
That's inaccurate. "this" references the current context (not to be confused with the current scope, which is indeed the current function).
Colin's example above wouldn't work as written because "var self" declares self into the local frame-level scope, which would be inaccessible to the event handler code.