0 Replies Latest reply on Oct 6, 2014 2:51 PM by melaniesamazing

    Flash Map Code Specific locations

    melaniesamazing

      Hey Community,

       

      I have an ad that needs radius around 6 specific locations in google maps. What I have set up currently works but it is nationwide and not location specific. I was wondering if someone could help me set this up. I have 6 different locations and if I can set up something based on address or longitude/latitude that would be amazing.  Here is my current code:

       

      field.zipcode.text = "00000";

       

      field.zipcode.onSetFocus = function() {

         

          over();

          field.zipcode.text = "";

      }

       

      field.zipcode.onKillFocus = function () {

         

          out();

          field.zipcode.text = "";

      }

       

      function over() {

         

          trace("over");

         

          if (field.zipcode.text == "00000") {

       

              field.zipcode.text = "";

          }

      }

       

      function out() {

         

          trace("out");

         

          if (field.zipcode.text == "") {

         

              field.zipcode.text = "00000"

          }

      }

       

       

      function getTickets() {

       

      // MULTI EXITS

          if (field.zipcode.text != "" && field.zipcode.text != "00000" ) {

              //_parent.initIn(zipcode.text);

             

      // SINGLE EXIT

       

      trace("CURRENT ZIP++ = " + field.zipcode.text)

          getURL("http://www.google.com/maps/search/blue+cross+enrollment+center+"+field.zipcode.text, "_blank");

         

          }

      }

       

       

      Thank you in advance!

       

      Best,

      Mel