Implementing the item panel

Item panel is a place where players organize their items. The following graph shows how we composite the item panel in Flash. The panel consists of a close button and 19 item slots. The itemSlot0 and itemSlot1 represent both hands, and itemSlot2 represent the riding. Players can arrange items within slots. They can put riding item in the riding slot. Riding item is a special item that players can ride on for faster movement. We are going to query items from server-side and display them in this panel according to the position.

Implementing the item panel

Loading the item definition

Similar to the buildings in the previous chapter, we have a definition ...

Get Flash Multiplayer Virtual Worlds now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.