Triangle « Graphics « Flash / Flex / ActionScript






1.Creates the triangle
2.Registers mouseMoveListener( ) to be executed whenever the mouse moves while the mouse pointer is over the Sprite object referenced by the variable triangle.
3.MouseEvent.MOUSE_MOVE: Handling MouseEvent.MOUSE_MOVE over a triangle
4.Draws a red triangle with a five pixel-thick black outline. Notice that the default start point (0, 0) matches the endpoint