Has any built a flex ap that mimics a html imagemap?

Looking to try to leverage existing html (as xml snip)

 <map name="FPMap0Map" id="FPMap0Map">

<area shape="poly" 
coords="418,2,410,27,417,51,439,18,430,3" 
onclick="showSalesRep('ME')" />

   <area shape="poly"  
coords="325,167,347,161,346,165,370,187,369,203,364,206,339,207" 
      onclick="showSalesRep('GA')" />
</map>

Load this in as xml data and have flex plot the shapes as clickable 
areas over the map image, the click or mouse over event then triger a 
as method of the same name.

Any thoughts would be appreciated.


HTML Example:

A map with CA, WA, AZ areas plotted.  
JS method display alert when area is clicked.



<script type="text/javascript">

function showSalesRep(state){
alert(state)

}
</script> 


<img src="./apps/salesStaff/map_files/usmap_p.jpg" alt="USA Map" 
width="450" 
            height="304" border="0" align="center" 
            usemap="#FPMap0Map" />      


<map name="FPMap0Map" id="FPMap0Map">
        <area 
              shape="poly"  
              
coords="57,87,31,77,24,91,26,111,30,124,35,149,41,168,58,176,64,190,83
,190,90,168,54,114" 
              onclick="showSalesRep('CA')" />
     <area 
              shape="poly"  
              
coords="96,23,63,10,59,25,57,14,43,7,44,25,43,37,61,44,90,47" 
              onclick="showSalesRep('WA')" />
        <area 
              shape="poly"  
              
coords="82,193,114,210,128,210,131,178,135,149,98,147,92,155,87,154,91
,166" 
              onclick="showSalesRep('AZ')" />
    </map>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to