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

Move Multiple

How can so little code have so many errors? The “10_move_multiple.fla” file has two buttons that simply call my move() function, which is supposed to move each circle 10 pixels in the direction requested. I’m sure I’m targeting the correct circle_ clip because I re-read the “Dynamic Referencing” section of Chapter 7, “The Movie Clip Object.” However, I can’t even test the movie without the Output window rearing its ugly head. Make it go away and make the circles move.

Hint

After you fix the syntax error by putting semicolons in place of the commas in the for loop, you have two more fixes to make! I’ll give you one: We’re supposed to be changing the _x property of each circle. Add ._x after this["circle_"+i] and you’ll only have one more fix to make.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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