Sticking an alert(this); in your event handler would be enlightening.
A little correctness:
this.play(pos+1); instead of this.stop(pos+1);
Neither are correct. Only gotoAndStop() and gotoAndPlay() take frame numbers.
I've done that but still not work.. the play head dos not move ..
When I add
inside function myFunction() .. I get [Object window ] message..
The question still How Can I refer to the timeline to play the play head??
Event handlers default to executing in the global window context. Yes, this was a very poorly thought out design decision, but now we're stuck with it.
To force a function to execute in a specific context, you have to use .bind() on it.