The main map can be loaded dynamically using xml or created inside the flash itself. Supports loading JPG , GIF, PNG and SWF files.
The data.xml file is used to send the landmarks data and map settings.
Below code show the map setting in data.xml file.
<settings stageWidth="490" stageHeight="300" stageBgColor="ffffff" stageTransperent="100" mapImage="map_asset/land.swf" mapInitialXposition="150" mapInitialYposition="250" popupBoxWidth="150" popupBoxFollowMouse="yes" popupBoxBackgroundColor="ffffff" zoomButtons="yes" zoomInitialPercentage="25" zoomMaximumPercentage="300" zoomButtonsBackgroundColor="000000" zoomButtonsIconColor="ffffff" zoomButtonsAlign="TR" zoomButtonsMargin="15" />
Landmarks:
- Landmarks can be dynamically populated and set X,Y position through xml.
- Landmark graphics can be loaded as external image (or you can use your own graphics created through FLA . Both are possible).
- Landmarks can have links with target window through xml.
- Each Landmark can be set Not to Scale or Scale so that it can be either allowed to scale along with map (while zooming) or always stay with fixed size.
- Dynamically enable/disable shadow option for landmarks.
Popup box:
Popup box appears on mouse over the landmarks.
Popup box can show Image, Title and description for each landmark in popup window. Image and text can align automatically as per its size.
Option to show the popup window in fixed position or follow the mouse cursor.
Options to set popup window width and color.
The popup box data can be added through xml even for the landmarks that created inside flash.
Zoom – Drag options:
Initial zoom level and position of the map can be adjusted through xml.
Zoom buttons can be enabled / disabled through xml.
Zoom buttons can be aligned and positioned through xml parameters.
Keyboard shortcuts for zoom in and zoom out using ” + ” and ” – ” key. Move the map using UP, DOWN , LEFT and RIGHT arrow key. Reset the map using SPACEBAR key.
The button colors also can be adjusted through xml.
Option to enable/disable zoom slider. On first frame in map.fla, just set the variable view_slider = true to display the zoom slider







Trackbacks/Pingbacks
[...] Zobacz resztę artykułu: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] more here: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … Related Posts:XML Magic Menu Tutorial for ActionScript 3 Flash CS3 + CS4 | HTML 5Flash Developer [...]
[...] here to read the rest: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … Tags: created-inside, data-xml-file-, flash, gif, inside-the-flash, jpg, loaded-dynamically, [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] here to read the rest: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … Related Posts:Flash XML Applications Focal Press (10-2007) | PDF | 336 pages | 0240809173 | 6.9Mb [...]
[...] more: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … Related Posts:XML Magic Menu Tutorial for ActionScript 3 Flash CS3 + CS4 | HTML 5 Free Flash Source [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] artykuł: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … Tags: created-inside, flash, gif, inside-the-flash, jpg, loaded-dynamically, main-map, png, [...]
[...] The rest is here: AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 | CS5 | flashcs.com [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash educational | ActionScript | CS4 | CS5 | flashcs.com [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 | CS5 | flashcs.com [...]
[...] AS2 XML Flash map | Flash CS | Flash educational | ActionScript | CS4 | CS5 | flashcs.com [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 | CS5 | flashcs.com [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 … [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 | CS5 | flashcs.com [...]
[...] AS2 XML Flash map | Flash CS | Flash tutorial | ActionScript | CS4 | CS5 | flashcs.com [...]