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

Rotating Box

Don’t ask me what the practical use of this movie is—maybe a Wheel of Fortune game? If you open and then test the file “05_rotating_box.fla,” you’ll find that you can set the box in motion by clicking either arrow button. When you click the Stop button, the next time the _rotation reaches a point that’s evenly divisible by 90, the box should stop (see Figure W18.2). I added some visual feedback for when the user clicks the Stop button—much like how a public bus might have a lighted sign that says “Stop requested” so that riders don’t keep requesting the bus to make the next stop. That’s just a little touch that makes this movie more usable. The problem seems to be related to “seltzer”—I can’t seem to make the box stop on it. Actually, if you start by pressing the left button, you won’t be able to stop it on “apples” either. Obviously, when you investigate the solution, don’t get hung up on the “seltzer” and “apples” choices. Try to determine why the box isn’t working generally.

Figure W18.2. Despite having little or no practical value, the goal of this movie is to enable the user to stop the box in one of four rotations.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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