Skip to content

Instantly share code, notes, and snippets.

@yorkfx
Created October 3, 2020 16:31
Show Gist options
  • Select an option

  • Save yorkfx/aa822421b26ddcb89f2a85cd3d8d62b6 to your computer and use it in GitHub Desktop.

Select an option

Save yorkfx/aa822421b26ddcb89f2a85cd3d8d62b6 to your computer and use it in GitHub Desktop.
tooltip adobe animate
stage.on("stagemousemove", function(evt) {
_this.nameMovieClip.mouseMoveOutside = true;
console.log(evt.stageX + " - " + evt.stageY); // always in bounds
_this.tooltip.x = (evt.stageX / 2);
_this.tooltip.y = (evt.stageY / 2) ;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment