This ensures that subsequent event over the children will not affect the main movie clip. The first makes the cursor turn into a hand when over the button, and the second tells the movie clip to behave like a menu. We set the "useHandCursor" property to true and "trackAsMenu" to true. This.addEventListener( MouseEvent.MOUSE_UP, up ) This.addEventListener( MouseEvent.MOUSE_DOWN, down ) This.addEventListener( MouseEvent.ROLL_OUT, out ) This.addEventListener( MouseEvent.ROLL_OVER, over ) Now, go back into the "button" movie clip and in the actions layer, press "F9" to open the Actions window, then enter the following code: We'll use the "textvar" string to name the menu, the "hidebar" boolean to hide the separator and the "submenu" string as the linkage name of the related submenu's movie clip. These parameters can then be accessed in the actions of the movie clip as variables.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |