0 Replies Latest reply on Jul 28, 2008 9:19 PM by Mike Savoy

    Declaring Variables and Binding

    Mike Savoy
      Hi,
      I am new to Flex and I am stuck for days, any help?
      All I want is to replace :42.334184,-71.018372 from the code below with a variable coming from a text input field
      So depending of the latitude in the text field I can move the Google maps
      My problem is, I do not know how to bind a var or declare that number (variable) instead of number hardcoded

      Many thanks for your helps


      private function mapReadyHandler(e:MapEvent):void
      {
      gMap.setCenter(new LatLng(42.334184,-71.018372), 13, MapType.HYBRID_MAP_TYPE);
      gMap.setSize(new Point(mapContainer.width, mapContainer.height));
      }