• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using the Mouse Class

In all Flash Pro movies where the mouse is required, you can use the Mouse class. The class itself is little changed from Flash MX, but you can now employ the mouse wheel in your scripting for your movies. Tables 7.9 and 7.10 show the class elements.

Table 7.9. Mouse Methods
METHODACTION
Mouse.addListener(obj)The object (obj) subscribes to onMouseDown, onMouseMove, onMouseWheel, and onMouseUp notification.
Mouse.hide()Hides the mouse pointer.
Mouse.removeListener(obj)Removes the subscriber object (obj).
Mouse.show()Shows the mouse pointer.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint