Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// This is the answer in simplest terms (no type declaring) homeButton.addEventListener(MouseEvent.MOUSE_OVER,handleBlankMouseOver); homeButton.addEventListener(MouseEvent.MOUSE_OUT,handleBlankMouseOut); homeButton.addEventListener(MouseEvent.MOUSE_DOWN,handleBlankMouseDown); function handleBlankMouseOver(event) { homeButton.gotoAndPlay(“over”); } function handleBlankMouseOut(event) { homeButton.gotoAndPlay(“out”); } function handleBlankMouseDown(event) { homeButton.gotoAndPlay(“out”); }
This paste will be private.
From the Design Piracy series on my blog: