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

Circle Move

This is a pretty easy one, but it’s likely to trip up even the most experienced ActionScripter. In the file (“03_circle_move.fla”), you’ll find three instances of the same Movie Clip—but only two bounce back and forth when you test the movie. Naturally, all the code is inside the master symbol so that it’s not duplicated. That makes it doubly frustrating because you would expect the same code to behave the same. That is, when you fix the script, you’ll have to fix it in only one place. For some unknown reason, the green circle never bounces back the way the red and blue instances do. What’s so different about the green clip? How can you fix it so that all the circles bounce back and forth?

Hint

Drag another instance of the Circle symbol and chances are very good that it will be broken too. Here’s another clue: Review the solution for the “Card Flip” broken script, earlier in this workshop chapter.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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