4 Replies Latest reply on Aug 19, 2009 5:05 PM by Jeff Swartz

    yahoo maps not working in air? pls help!!! someone!!!


      Hi  everyone,


      I have created a partial air app and now i need a yahoo map.


      The code which I have works in dreamweaver when i test it as a normal web html file but does not work then when I use it in aptana studios for air apps.


      The code is :


      <script type="text/javascript" 
      <style type="text/css"> 
      height: 100%; 
      width: 100%; 

      <div id="map"></div> 
      <script type="text/javascript"> 
           // Create a map object 
           var map = new YMap(document.getElementById('map')); 
           // Add map type control 
           // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG 
           // Display the map centered on a geocoded location 
           map.drawZoomAndCenter("San Francisco", 3); 


      The error I am receiving is "ReferenceError: Can't find variable: YMap"


      can anyone tell me why?


      Thank you all so much in advance?