you can see the scores of different people and compare your score to theirscores.
A SharedObject can be used to provide real-time data sharing among many clients. An example is where all the airline reservation agents can see thesame number of seats available for any given ﬂight, and once a ticket isbooked everybody has the updated data reﬂecting the total available seats.Limitations of the SharedObject include the following:
Sometimes .swf ﬁles are not allowed to write data to local SharedObjects.
E x e r c i s e 8 . 1
The main theme of this game is to mimic a high score feature, which is common in games. Thegame keeps track of scores of 10 individuals playing on the same machine. The scores are rankedfrom highest to lowest. The game requires that the player be able to click on an object thatappears at random places. The goal is for the player to click on the object as many times aspossible within 20 seconds. The number of clicks is saved in the SharedObject and is displayed thenext time the player opens the game.
This phase includes the logical flow of your game depicted pictorially. Figure 8.1 shows thisprocess.
The graphics you need for this game are all going to be button symbols. You will need a Startbutton, an object (also a button type) that will be placed randomly at different positions, a ClearScores button, and a Play Again button. Use your imagination and create the three buttons (Start,Clear All, and Play Again). For the object, create a button with a fancy shape, such as a teddybear, a rabbit, an orange, or whatever you fancy. In this game, a dog biscuit will be used as theclickable object. Make sure you choose button type for these game assets when you create thenew symbols.
164 Chapter 8
High Scores Game