• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Your First ActionScripts > Another Property-Changing Example

Another Property-Changing Example

Don't worry—this example is simpler than the previous one. We're going to take the movie of Jake the fish swimming into the pea shark's mouth and getting scared, and we're going to add a little bit to it. We'll make Jake face in whatever direction the mouse is moving. If the mouse is moving left, Jake will face to the left. If the mouse is moving right, Jake will face to the right.

1.
Open chapter3/drag_jake2.fla.

2.
Click the frame in the actions layer and open up the Actions panel.

3.
Enter the following code:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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