Wednesday 11 March 2009
by Huw Collingbourne

This series explains how to use ActionScript - the language behind Adobe’s Flash graphics and Flex framework - to program an adventure game. In part one, I created a simple ‘map’ which was an ‘associative array’ (a ‘hash’ or ‘dictionary’ of key-value pairs) containing user-defined Room objects. Each room had ‘exits’ which took the form of strings (each string being the name of an ‘adjoining’ room). This string was used as a key into the ‘map’ to locate a room with the matching name.