XML Attributes

This document discusses all the possible attributes for any FlashMapOne map(Flash map sdk). If you want to konw how to setting xml file please check the "FAQ -- How to Setting XML file in FlashMapOne? ".
<map>
This tag is the root of map, all other tag in it.
<style_list>
Define a style list which can be font, gradientfill, image. These style can be used in following attributes.

style

Attribute Name Type Range Description Example
id String id of style id="fn_01"
type String font,gradientfill,image type of style, support 3 type type="font"

style for font

Define a font which can be used in below attribute.
Attribute Name Type Range Description Example
font_name String Font Name the font face (family) of this font style font_name="Arial"
size Number 0-72 size of this font style size="12"
color Color the color of this fornt style color="#FF0000"
align String   align of this font style" align="left"
italic Boolean true,false whether to italic for text. italic="true"
bold Boolean true,false whether to bold for text bold="true"
underline Boolean true,false whether to show underline for text underline="true"

style for Gradientfill

All attribute of gradientfill same as parameter of MovieClip.beginGradientFill method in Flash AS script. You can refrense the document "ActionScript classes > MovieClip > beginGradientFill (MovieClip.beginGradientFill method)" in Flash Help.
Attribute Name Type Range Description Example

style for image

Define a image resource which can be used in below attribute.
Attribute Name Type Range Description Example
url String where is image source. a local folder or a URL. url="img.gif"
url=" http://www.google.com/
intl/en_ALL/images/logo.gif"
<map_general>
Sets the general attributes of map in this tag, likes background color, region default color, default style, messagebox visual style etc.

background

Sets background of map.
Attribute Name Type Range Description Example
color Color color of map background color="#FF00FF"
fillstyle String id one of styles which defined in <style_list> use this attribute can sets the map background to a gradientfill style or a image. fillstyle="img_01", fillstyle="gf_01"

region

Region is the base unit in a map. Normally a region is a state or province in a country map, a region is a conntry in a world map.
Attribute Name Type Range Description Example
active Boolean true, false wheather regions is active, if set to false, the regions will not respond to mouse events. active="true"
show_text String   the default show text of all regions. this attribute support "variable swith".variable can is "short_name", "value","name". see the example. short_name="SA" show_text="I am !short_name!"
the label of region will show "I am SA".
text_light Boolean true, false wheather label text is light of all regions. text_light="true"
textfont font font id one of styles which defined in <style_list> sets the default font of show text of all regions. textfont ="fn_01"
color Color default color of all regions color="#FF00FF"
fillstyle gradientfill gradientfill id one of styles which defined in <style_list> sets the default gradientfill of all regions. fillstyle="gf_01"
hot_color Color default hot color of all regions, shows when mouse over region. hot_color="#FF0000"
hot_fillstyle gradientfill gradientfill id one of styles which defined in <style_list> sets the hot default gradientfill of all regions. hot_fillstyle="gf_01"
border_color Color default color of region border border_color="#FF00FF"

location

Attribute Name Type Range Description Example
image String image source url of all locations image="location.gif"
width Number   width in px(Pixels) of location of all locations. width="20"
height Number height in px of location of all locations. height="20"
textfont font font id one of styles which defined in <style_list> sets the label default font of all locations. textfont ="fn_01"
border_color Color reserve  
label_pos String up, down, left, right default label position relative to the image. label_pos="up"
color Color default color of lable text of all locations. color="#FF00FF"
fillstyle String id one of styles which defined in <style_list> reserve
hot_color Color default hot color of lable text of all locations, shows when mouse over location. hot_color="#FF00FF"
hot_fillstyle String id one of styles which defined in <style_list> reserve

connection

Attribute Name Type Range Description Example
line_width Number line width in px of all connections. line_width="2"
line_type String soild, dashed line type of all connections. notice that dashed available only when connect_type is line. line_type="soild"
connect_type String line, curve connect type of all connections. connect_type="line"
color Color default color of lable text of all connections. color="#FF00FF"
fillstyle String id one of styles which defined in <style_list> reserve
hot_color Color default hot color of lable text of all connections, shows when mouse over connection. hot_color="#FF00FF"
hot_fillstyle String id one of styles which defined in <style_list> reserve

tooltip

Attribute Name Type Range Description Example
background_color Color background color of tooltip background_color="#FF00FF"
background_fillstyle String id one of styles which defined in <style_list> use this attribute can sets the tooltip background to a gradientfill style. background_fillstyle="gf_01"
textfont font font id one of styles which defined in <style_list> sets the text default font of tooltip. textfont ="fn_01"
text_light Boolean true, false wheather tooltip text is light text_light="true"

description

Attribute Name Type Range Description Example
background_color Color background color of description background_color="#FF00FF"
background_fillstyle String id one of styles which defined in <style_list> use this attribute can sets the description background to a gradientfill style. background_fillstyle="gf_01"
textfont font font id one of styles which defined in <style_list> sets the label default font of description. textfont ="fn_01"
text_light Boolean true, false wheather description text is light text_light="true"

messagebox

Attribute Name Type Range Description Example
width Number   width in px(Pixels) of messagbox. width="200"
height Number height in px of location of messagbox. height="200"
border_color Color border color of messagbox. border_color="#FF00FF"
bar_color Color bar color of messagbox. bar_color="#FF00FF"
bar_visible Boolean true, false wheather show the bar in messagebox. bar_visible="true"
bar_height Number height in px of bar of messagbox. bar_height="20"
close_button_size   "x,y,width,height" sets the size and position of "close button" in messagbox. the format is "x, y, width, height" close_button_size="178,2,20,15"
close_button_color Color color of "close button " in messagbox. close_button_color="#FF0000"
close_button_hot_color Color hot color of "close button " in messagbox. close_button_hot_color="#FF00FF"
background_color Color background color of messagbox background_color="#FF00FF"
background_fillstyle gradientfill gradientfill id one of styles which defined in <style_list> sets the background to gradientfill in messagbox. background_fillstyle="gf_01"
textfont font font id one of styles which defined in <style_list> sets the text font of messagbox. textfont ="fn_01"
text_light Boolean true, false wheather messagbox text is light text_light="true"
msgbox_css String css source file name sets css file which apply to text sytle in messagbox. FlashMapOne limited support a part of css tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_css="css_msg.css"

animated

Attribute Name Type Range Description Example
hot_region Boolean true, false wheather to show animation when mouse over region. hot_region="true"
hot_region_border Boolean true, false wheather to show hot border of region when mouse over region. hot_region_border="true"
tooltip_description_in Boolean true, false wheather to show tooltip and description in animation. tooltip_description_in="true"
messagebox_in Boolean true, false wheather to show messagbox in animation. messagebox_in="true"
<region_list>
Define regions list and attributes in each region.

<region>

Attribute Name Type Range Description Example
id String id of region which be unique in whole region list. id="DN_AS"
name String   name of region. name="Asia"
short_name String short name of region. short_name="AS"
show_text String   show text of region. this attribute support "variable swith". variable can is "short_name", "value","name". see the example. short_name="SA" show_text="I am !short_name!"
the label of region will show "I am SA".
active Boolean true, false wheather region is active, if set to false, the region will not respond to mouse events. active="true"
value Number   a value relation of region, can be used in bussiness report. value="299"
color Color color of all region color="#FF00FF"
fillstyle gradientfill gradientfill id one of styles which defined in <style_list> sets the gradientfill of region. fillstyle="gf_01"
hot_color Color hot color of region, shows when mouse over region. hot_color="#FF0000"
hot_fillstyle gradientfill gradientfill id one of styles which defined in <style_list> sets the hot gradientfill of region. hot_fillstyle="gf_01"
border_color Color color of region border border_color="#FF00FF"
link_type String _blank, _parent, _self, _top sets the open windows type of region when mouse click on. link_type="_blank"
link String URL open URL when mouse click on region. support "http://", "https://", "mailto://", etc. link="http://www.myweb.com"
msgbox_text_url String text or html file name sets text or html file which will be load into the messagbox. FlashMapOne limited support a part of html tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_text_url="msg_text.html"
msgbox_text String text will show in messagbox. if the msgbox_text_url is not null, this attribute will be ignored. msgbox_text="show me in messagbox "
msgbox_css String css source file name sets css file which apply to text sytle in messagbox. FlashMapOne limited support a part of css tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_css="css_msg.css"
msgbox_bk_image String image file name sets the background image of messagbox msgbox_bk_image="msg_bk.gif"
tooltip String   tooltip text of region tooltip="show me in tooltip "
description String tooltip text of region description="show me in description"
<location_list>
Define locations list and attributes in each location.

<location>

Attribute Name Type Range Description Example
id String id of location which be unique in whole location list. id="L_ID_1"
name String   name of location. name="Paris"
image String image source url of location image="location.gif"
x_pos Number   x position in px(Pixels) of location. x_pos="120"
y_pos Number y position in px(Pixels) of location. y_pos="70"
width Number   width in px(Pixels) of location . width="20"
height Number height in px of location. height="20"
label_pos String up, down, left, right label position relative to the image. label_pos="up"
short_name String short name of location. short_name="pa"
label String   label of location. label="Paris"
border_color Color reserve  
value Number   a value relation of location, can be used in bussiness report. value="299"
color Color color of all location color="#FF00FF"
fillstyle gradientfill   reserve  
hot_color Color hot color of location, shows when mouse over location. hot_color="#FF0000"
hot_fillstyle gradientfill   reserve hot_fillstyle="gf_01"
link_type String _blank, _parent, _self, _top sets the open windows type of location when mouse click on. link_type="_blank"
link String URL open URL when mouse click on location. support "http://", "https://", "mailto://", etc. link="http://www.myweb.com"
msgbox_text_url String text or html file name sets text or html file which will be load into the messagbox. FlashMapOne limited support a part of html tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_text_url="msg_text.html"
msgbox_text String text will show in messagbox. if the msgbox_text_url is not null, this attribute will be ignored. msgbox_text="show me in messagbox "
msgbox_css String css source file name sets css file which apply to text sytle in messagbox. FlashMapOne limited support a part of css tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_css="css_msg.css"
msgbox_bk_image String image file name sets the background image of messagbox msgbox_bk_image="msg_bk.gif"
tooltip String   tooltip text of location tooltip="show me in tooltip "
description String tooltip text of location description="show me in description"
<connection_list>
Define connections list and attributes in each connection.

<connection>

Attribute Name Type Range Description Example
id String id of connection which be unique in whole connection list. id="C_ID_1"
name String   name of connection. name="Paris_London"
connect_points String location ids define a locations list for be connected. these ids defined in <location_list> connect_points="L_ID_1,L_ID_2"
line_width Number line width in px of connection. line_width="2"
line_type String soild, dashed line type ofl connection. notice that dashed available only when connect_type is line. line_type="soild"
connect_type String line, curve connect type of connection. connect_type="line"
short_name String short name of connection. short_name="pa"
border_color Color reserve  
value Number   a value relation of connection, can be used in bussiness report. value="299"
color Color color of all connection color="#FF00FF"
fillstyle gradientfill   reserve  
hot_color Color hot color of connection, shows when mouse over connection. hot_color="#FF0000"
hot_fillstyle gradientfill   reserve hot_fillstyle="gf_01"
link_type String _blank, _parent, _self, _top sets the open windows type of connection when mouse click on. link_type="_blank"
link String URL open URL when mouse click on connection. support "http://", "https://", "mailto://", etc. link="http://www.myweb.com"
msgbox_text_url String text or html file name sets text or html file which will be load into the messagbox. FlashMapOne limited support a part of html tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_text_url="msg_text.html"
msgbox_text String text will show in messagbox. if the msgbox_text_url is not null, this attribute will be ignored. msgbox_text="show me in messagbox "
msgbox_css String css source file name sets css file which apply to text sytle in messagbox. FlashMapOne limited support a part of css tag. the detail please check the section of "CSS"or "Html" in Flash Help. msgbox_css="css_msg.css"
msgbox_bk_image String image file name sets the background image of messagbox msgbox_bk_image="msg_bk.gif"
tooltip String   tooltip text of connection tooltip="show me in tooltip "
description String tooltip text of connection description="show me in description"