To walk around the world, we need the avatar and the isometric map from last two chapters. We are going to integrate them to construct our virtual world.
The movie clip hierarchy of the virtual world now looks like the following graph. The world is responsible to draw the avatars and hold the avatar list. It also creates the isometric world map. The reason of putting the avatars and isometric map into the world movie clip is that we can easily scroll the whole world by only repositioning the world movie clip. All the avatars and the map will scroll together automatically.
Note
The movie clip architecture
When developing Flash virtual world, it is important to design the movie clip architecture well. A good architecture will glue relative graphic assets together for easy positioning and scaling. It can also make the z-order of the movie clips easier to manage. For example, putting an interface movie clip on top of the world movie clip ensure every UI item is visible without...