1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
// 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); { homeButton.gotoAndPlay(“over”); } { homeButton.gotoAndPlay(“out”); } { homeButton.gotoAndPlay(“out”); } |
Pastie
