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

Changing the Sprite

Another way to indicate that an object is clickable is to make the on-screen graphical object change in some way when the mouse cursor passes over it or clicks it. A button, for example, can change color when the cursor passes over it, and then it can change to a depressed button image when the mouse is clicked on it. These kinds of actions improve the user interface of an application, making it simpler to use, even though the script that makes up the complete interface can be quite complicated.

In this task, you will see how some complex sprite actions can be accomplished. You will create two new graphics by copying and modifying the Background graphic you already created. Then you will use the Library Palette to attach a behavior that modifies the sprite on the stage based on the position of the cursor.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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