Building Demos

There are two demos provided with Modest Maps: SampleClient1 and SampleClient2. Both show a draggable, zoomable map. The first can be built using the open-source ActionScript Compiler MTASC, the seconds requires Flash 8.

SampleClient1

  1. Install MTASC, and make sure you have GNU Make. On Mac OS X, this means you should install the Developer Tools.
  2. In a terminal, navigate to the as2 directory.
  3. Type "make". This will look for the file lib/SampleClient1.as.
  4. If there were no errors, open SampleClient1.swf in a browser.

SampleClient2

  1. Get a copy of Flash 8 from Adobe.
  2. Open SampleClient2.fla in the Flash application.
  3. Publish it.

SampleFlexClient(as3)

  1. download flex_2_sdk
  2. from as3 direcotry run: path/to/flex_2_sdk/bin/mxmlc --use-network=False -compiler.source-path=lib ./SampleClient.mxml
  3. browse 2 SampleClient?.swf