![]() |
||
By: Bart Pedziwiatr Welcome to the Pong MX tutorial which will cover the use of Remote Shared Objects with the Flash Communication Server. This tutorial will demonstrate a practical use for Shared Objects by creating a multiplayer pong game. To get started, download the FLA file: Pong_mx_source There are three frames in the game, the first contains the intro screen and player name input. The second one contains the actual game elements, and finally the third frame contains the additional player screen for watching or changing game settings. Each frame has its own movie script. The game will work like this: Player links to the SWF, gets the main intro screen, inputs player name then clicks on Start Game button. A second player on a remote computer also does the same thing. The next screen (frame 2) shows Player 1 start/ Player 2 start buttons, the two players select which side they want to play on. The game starts, now for the fun part. Any other additional players that join the game go to yet another screen (frame 3). There, they can watch the game being played by the first two players, and also control the ball speed, visibility and direction. All the communication between the players is accomplished by using the Remote Shared Object and Flash Comm. To view the game open the link below two or three times in seperate browser windows: Pong_mx_swf |
||