Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Created December 2, 2010 20:55
Show Gist options
  • Save lynndylanhurley/726044 to your computer and use it in GitHub Desktop.
Save lynndylanhurley/726044 to your computer and use it in GitHub Desktop.
private function mouseDownHandler(e:MouseEvent):void
{
alignInfo.fadeBack();
xOffset = stage.mouseX - photo.x;
yOffset = stage.mouseY - photo.y;
minX = 0-(photo.width-679+photoMask.x);
minY = 0-(photo.height-468+photoMask.y);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment