Installing components

To use SWC files in your Flex projects, you should add them to the project's library path.

  1. With a project selected in the Flex Navigator view, select Project > Properties > Flex Build Path.
  2. Click on the Library Path tab.
  3. Click on the Add Swc button.
  4. Browse to and select the amMapFB3.swc file if you work with Flex Builder 3. Select amMapFB4.swc if you work with Flex Builder 4.
  5. Click OK
  6. The component is now added. You should see amMap folder in the components window (only available when you are in design mode).
Visit Flex documentation for more options on installing components.

AmMap Class Reference

Compiling swc file


AmMap for Flex Tutorials

  1. Basic Maps
  2. Calibrating the Map and Using Geographic Coordinates
  3. Customizing the Look
  4. Adding Lines
  5. Zooming
  6. Interactive Elements

Examples

AmMapHomePageFlex 3 MXMLFlex 4 MXML
AmMapWithChartsFlex 3 MXMLFlex 4 MXML
DrillDownMapFlex 3 MXMLFlex 4 MXML
FlightRoutesFlex 3 MXMLFlex 4 MXML
GroupedCountriesFlex 3 MXMLFlex 4 MXML
MapChartFlex 3 MXMLFlex 4 MXML
MultiLevelMapFlex 3 MXMLFlex 4 MXML
RadiusAroundAPointFlex 3 MXMLFlex 4 MXML
SelectingMultipleAreasFlex 3 MXMLFlex 4 MXML
USCountiesMapFlex 3 MXMLFlex 4 MXML
WorkingInDeveloperModeFlex 3 MXMLFlex 4 MXML
WorldCapitalsFlex 3 MXMLFlex 4 MXML
ZoomingToGroupedAreasFlex 3 MXMLFlex 4 MXML
ZoomingWorldCountriesFlex 3 MXMLFlex 4 MXML

Change log

1.0.2.7

map swfs republished so that they could be used on mobile projects with FB 4.5

1.0.2.5

Fix: small map wasn't receiving clicks if dragEnabled was set to false.

Change log

1.0.2.4

zoomCompleted event added to AmMap.

Some minor bugs fixed.

1.0.2.3

Problem with balloon/label height with new version of Flash player fixed.

1.0.2.2

fixed property added to ZoomControl

some minor bugs fixed

1.0.2.0

A bug with the latest 4.5 SDK fixed.

We changed most of properties and methods from private to protected. If you have sources of our components this will allow extending our components more easily.

Some other minor fixes.

1.0.1.0

This is important update!

Some changes which might affect previous behavior were made in this version, read the following carefully.

AmMap (FB4 build) now can be used with HERO SDK (except AmMapLegend class). This means you can build mobile applications with amCharts for Android and iPhone now. To accomplish this we had to get rid of classes, not supported by HERO SDK. We made changes both in FB3 and FB4 build so that it would be easier to maintain and document. This also made our components much lighter and a bit faster. Below listed changes which might have influence to your applications with previous versions of amMap.

AmMap and SmallMap classes no longer extends Canvas, they extend UIComponent instead. This means that they do not support styles/properties/methods specific to Canvas anymore. These classes still hav styles backgroundColor and backgroundAlpha styles. This change might cause error on your application if you used Canvas specific styles or properties. If you need them anyway, you can always put your map into Canvas container.

amMap no longer uses mx ProgressBar to show progress of map loading. We build our own progressbar instead. You can still use mx Progressbar, as mapProgressBar accepts any object now.

1.0.0.5 BETA

zoomToLatLongRectangle method added.

1.0.0.4 BETA

rollOverEffect property added to AreasSettings and MapArea