Hi, Somehow...it does not work,
I added both textfield with href and link button. The text field does not behave like a link The link button is not displayed. I am attaching my source code - hopefully someone can solve this..... MXML FILE: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%" creationComplete="startMap(event)"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import mx.states.SetProperty; import mx.effects.easing.* //google Map import com.google.maps.LatLng; import com.google.maps.LatLngBounds; import com.google.maps.controls.MapTypeControl; import com.google.maps.controls.PositionControl; import com.google.maps.controls.ZoomControl; import com.google.maps.InfoWindowOptions; import com.google.maps.controls.ZoomControlOptions; //GClientGeocoder import com.google.maps.services.ClientGeocoder; import com.google.maps.services.ClientGeocoderOptions; import com.google.maps.services.GeocodingEvent; import flash.events.Event; import com.google.maps.MapEvent; import com.google.maps.Map; import com.google.maps.MapType; import com.google.maps.LatLng; // markers import com.google.maps.styles.FillStyle; import com.google.maps.styles.StrokeStyle; import com.google.maps.overlays.MarkerOptions; import com.google.maps.overlays.Marker; // infoWindow import com.google.maps.InfoWindowOptions; import com.google.maps.MapMouseEvent; import mx.controls.Alert; import classes.mapWindowInfo; private var map:Map; private var geocoder:ClientGeocoder; private var infoSprite:DisplayObject; private var categories:Object = { "food": { "markers": []}, "shop": { "markers": []}, "sport": { "markers": []}, "fun": { "markers": []}, "sites": { "markers": []}, "emergency": { "markers": []} }; [Bindable] public var attractions_lbl:String = "Attractions"; [Bindable] public var historical_lbl:String = 'Site Seeing'; [Bindable] public var food_lbl:String = 'Restaurants'; [Bindable] public var fun_lbl:String = 'Fun'; [Bindable] public var shop_lbl:String = 'Shop'; [Bindable] public var sport_lbl:String = 'Sport'; [Bindable] public var emergency_lbl:String = 'Emergency'; [Bindable] public var events_lbl:String = 'Local Events'; [Bindable] public var transport_lbl:String = 'Transportation'; [Bindable] public var attractionsModel:XML = <pinpoints> <sites> <pin id="0006" locationID="0851" name="Opera House" long="151.214876" lat="-33.858362"> <address>23 shimon st. San Francisco</address> <description>Sydney Opera house is world famous for it's architecture.</description> <image url="$location/images/attractions/sites/sydney_opera"/> <link url="http://www.sydneyoperahouse.com"/> </pin> <pin id="0006" locationID="0851" name="Sydney Circular Quay" long="151.212445" lat="-33.861466"> <address>Central NSW 2000</address> <description>Nestled between the City Business District, the Rocks, the Opera House and the Royal Botanical Gardens, it is a main transport terminus for Sydney ferries, trains, buses and taxis. From here you can visit historical Parramatta, Sydney Olympic Park, Darling Harbour, Taronga Zoo by ferry via the ever beautiful Sydney Harbour. Multitude of Harbour Cruises available.</description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.pizzapoppy.com"/> </pin> <pin id="0006" locationID="0851" name="Fort Denison" long="151.2256354" lat="-33.8549539"> <address>110 George St</address> <description>Situated strategically in the middle of Sydney Harbour, this fort was a key part of the 1800s defense network of Sydney. Originally known as Pinchgut Island, this was the punishment place for recalcitrant convicts who misbehaved during the very early days of the colony. .</description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.nationalparks.nsw.gov.au"/> </pin> <pin id="0006" locationID="0851" name="Government House" long="150.656413" lat="-33.750821"> <address>Macquarie St., Botanic Gardens Central</address> <description>Government House was constructed between 1837-1845. It is the most sophisticated example of a Gothic Revival building in New South Wales.</description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.hht.net.au"/> </pin> <pin id="0006" locationID="0851" name="The Mint" long="150.880329" lat="-33.952202"> <address>Queens Square - Macquarie St. Central</address> <description>The Mint, constructed between 1811-1816 as the southern wing of the Sydney Hospital, is one of the oldest extant buildings in central Sydney. A Mint was established there in 1854</ description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.hht.nsw.gov.au/fmuseums.html"/> </pin> <pin id="0006" locationID="0851" name="Hyde Park Barracks" long="151.212789" lat="-33.863743"> <address>Queens Square - Macquarie St.Central</address> <description>Hyde Park Barracks, designed by Francis Greenway, was a home to convicts and place of punishment until 1848..</ description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.hht.net.au"/> </pin> </sites> <food> <pin id="0001" locationID="0851" name="Big Brekky" long="151.180075" lat="-33.913425"> <address>corner of Albert St and Stanmore Rd</address> <description>As the name implies, this café specialises in that all important meal in the mornings with large portions for the hungry</ description> <image url="$location/images/attractions/food/0001"/> <link url="http://www.pizzapoppy.com"/> </pin> <pin id="0002" locationID="0851" name="Bill’s" long="151.222678" lat="-33.878691"> <address>433 Liverpool St</address> <description>Athe food is imaginative and simply delish</ description> <image url="$location/images/attractions/food/0002"/> <link url="http://www.pizzapoppy.com"/> </pin> </food> <fun> <pin id="0006" locationID="0851" name="Taronga Park Zoo" long="151.048531" lat="-33.998425"> <address>Bradley’s Head Road</address> <description>Taronga lets children visit up close with some of Australia’s most spectacular and exotic creatures - native koalas, of course, but also kangaroos, dingoes, Tasmanian devils and wombats.</ description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.pizzapoppy.com"/> </pin> <pin id="0006" locationID="0851" name="Bondi Beach" long="151.274856" lat="-33.890542"> <address>Sydney Bondi beach</address> <description>Home to the one of the world’s oldest surf life saving clubs, if not the oldest, this beautiful beach is the closest to the Sydney city centre (8kms).</description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.pizzapoppy.com"/> </pin> <pin id="0006" locationID="0851" name="The Luna Park" long="151.227405" lat="-33.842551"> <address>Milson's point</address> <description>Built in 1935, modeled after Coney Island’s Luna Park and set against the backdrop of Sydney Harbour, this is an energetic amusement park that features a variety of classic rides. Visitors enter beneath the ghastly, grinning face of a painted clown, who has evolved alongside the park’s collection of attractions.</ description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.pizzapoppy.com"/> </pin> </fun> <shop> <pin id="0006" locationID="0862" name="Pitt Street Mall" long="151.208218" lat="-33.87077"> <address>Pitt Street</address> <description>Pitt Street in the city centre has a great collection of stores and shopping arcades, including the Strand, Skygarden and the Glasshouse.</description> <image url="$location/images/attractions/shop/0006"/> <link url="http://www.kmart.com"/> </pin> <pin id="0006" locationID="0851" name="Darling Harbour - Harbourside" long="151.1985174" lat="-33.8703933"> <address>Darling Harbour</address> <description>Offers not only a great shopping experience, but entertainment, food, things to do for the whole family and national attractions. Shopping includes well known and select Australian and world wide brands. Just the place to look for that special Australian gift</description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.pizzapoppy.com"/> </pin> </shop> <sport> <pin id="0006" locationID="0851" name="Rugby" long="151.219357" lat="-33.893632"> <address>Gold Members Car Park Sydney Football Stadium Moore Park, NSW, 2001 </address> <description>Formed in 1908 the Sydney Roosters are proud to be the only club to have played every year in the nation’s top Rugby League competition. Our club has produced more Australian International players and won more games than any other club in Australian Rugby League history. </description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.sydneyroosters.com.au/2009/"/> </pin> <pin id="0006" locationID="0851" name="Cricket Court" long="151.225345" lat="-33.887865"> <address>Sheridan Building Moore Park Road</address> <description>Probably the most famous Balmain players are Archie Jackson and Arthur Mailey, but the list of international and state players with Balmain at one time or another is star studded. The highest first grade run scorer of all time is, however current opening batsman Greg Hayne and he also heads the list of those who have scored the most centuries for the Club. So the grand history of a grand history of a grand Club continues… The black and gold colours of Balmain have been synonymous with its famous Tiger logo. And as the locals say – there are only 2 kinds of people in this world – there are those who were born in Balmain and those who wish they were !!! </description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.scgt.nsw.gov.au"/> </pin> </sport> <emergency> <pin id="0007" locationID="0851" name="Sydney Children's Hospital" long="151.234549" lat="-33.91608"> <address>High St, Randwick</address> <description>Sydney Children's Hospital, Randwick and Community Child Health Services encompass an acute care facility as well as associated outreach and community based services. The Hospital is one of three tertiary centres for child health in New South Wales. We provide the most complex (level 6) and comprehensive range of services in paediatric and adolescent medicine and surgery as well as child protection</description> <image url="$location/images/attractions/food/0006"/> <link url="http://www.sch.edu.au"/> </pin> <pin id="0008" locationID="0851" name="St Vincent's Hospital " long="151.222217" lat="-33.874708"> <address>Victoria St, Darlinghurst</address> <description>St Vincent’s is a world-class public hospital offering best-in-class services, facilities, and expertise, along with educational opportunities. We have an international reputation for innovation and are regarded as a centre of excellence for clinical care, research, teaching and medical leadership.</description> <image url="$location/images/attractions/food/0006"/> <link url="http://wwwsvh.stvincents.com.au/"/> </pin> </emergency> </pinpoints> private function startMap(event:Event):void { map = new Map(); map.key = "ABQIAAAAns_qaftVUN4UrFNBWzKGqhRHd_nMnWTWe74whxKXjnHxDYHThxQtR7Rp87bX_izui5LWRx5mGI9ZDw"; map.addEventListener(MapEvent.MAP_READY, onMapReady); map.width = 600; map.height = 400; mapContainer.addChild(map); } public function resizeMap(event:Event):void { map.setSize(new Point(mapContainer.width, mapContainer.height)); } private function onMapReady(event:MapEvent):void { geocoder = new ClientGeocoder(new ClientGeocoderOptions ({countryCode: "AU"})); var city:String = "Sydney"; var addressStr:String = city; // address.text.toString(); geocodeAddress(addressStr); // event.target.openInfoWindow(event.target.getCenter(), new InfoWindowOptions({title: "Hello", content: "World"})); var zoomOpt:ZoomControlOptions = new ZoomControlOptions ({ buttonSize: new Point(17, 17), buttonSpacing: new Point(4, 4), hasScrollTrack: false }); var zoomCon:ZoomControl = event.target.addControl(new ZoomControl(zoomOpt)); var posCon:PositionControl = event.target.addControl(new PositionControl()); var typeCon:MapTypeControl = event.target.addControl(new MapTypeControl()); map.setSize(new Point(mapContainer.width, mapContainer.height)); } private function geocodeAddress(geoAddress:String):void { geocoder.addEventListener(GeocodingEvent.GEOCODING_SUCCESS, onGeocodingSuccess, false, 0, true); geocoder.addEventListener(GeocodingEvent.GEOCODING_FAILURE, onGeocodingFailure, false, 0, true); geocoder.resetCache(); geocoder.geocode(geoAddress); } private function onGeocodingFailure(event:GeocodingEvent):void{ Alert.show("Geocoding error. Try to refresh the page or another search "+event); } private function gotoLocation():void { geocoder = new ClientGeocoder(new ClientGeocoderOptions ({countryCode: "AU"})); var city:String = "Sydney"; var addressStr:String = city; // address.text.toString(); geocodeAddress(addressStr); } private function onGeocodingSuccess(event:GeocodingEvent):void{ map.setCenter(event.response.placemarks[0].point, 14, MapType.NORMAL_MAP_TYPE); // add a marker var bounds:LatLngBounds = map.getLatLngBounds(); trace ("coordinates " + event.response.placemarks [0].Point.coordinates[0] + " " + event.response.placemarks [0].Point.coordinates[1]); var mapCenter:LatLng = bounds.getCenter(); // parse attractionsModel addAttractionsMarkers(); } private function addAttractionsMarkers():void { var attractionChildren:XMLList = attractionsModel.children(); //trace ("attractionChildren " + attractionChildren.text()); for each (var typeInfo:XML in attractionChildren) { // add marker for each pin in sites var typeInfoChildren:XMLList = typeInfo.children(); /* trace ("typeInfo.length() " + typeInfo.length()); trace ("typeInfoChildren.length() " + typeInfoChildren.length ()); */for each (var pinInfo:XML in typeInfoChildren) { var latlng:LatLng = new LatLng(pinInfo.attribute("lat"), pinInfo.attribute("long")); var marker:Marker = createMarker(latlng, pinInfo,typeInfo.name ()); map.addOverlay(marker); categories[(typeInfo.name().toString())].markers.push (marker); } } } private function toggleCategory(type:String):void { for (var i:Number = 0; i < categories[type].markers.length; i+ +) { var marker:Marker = categories[type].markers[i]; if (!marker.visible) { marker.visible = true; } else { marker.visible = false; } } } public function createMarker(latlng:LatLng, pinXMLInfo:XML, pinType:String): Marker { //var markerOptions:MarkerOptions = new MarkerOptions({icon: new customIcons[pinType], var markerOptions:MarkerOptions = new MarkerOptions({ iconOffset: new Point(-16, -32), radius: 12, draggable: false, hasShadow: true}); var marker:Marker = new Marker(latlng, markerOptions); infoSprite = new mapWindowInfo(pinXMLInfo); var options:InfoWindowOptions = new InfoWindowOptions({ customContent: infoSprite, customCloseRect: new Rectangle(420, -10, 30, 30) }); marker.addEventListener(MapMouseEvent.CLICK, function (e:Event):void { marker.openInfoWindow(options); }); map.addOverlay(marker); return marker; } ]]> </mx:Script> <mx:VBox x="10" horizontalGap="10" y="50" top="60"> <mx:Label text="Enter Street" /> <mx:Spacer width="20"/> <mx:TextInput id="street" toolTip="Enter Street"/> <mx:Spacer width="50"/> <mx:Label text="Enter Number" /> <mx:Spacer width="20"/> <mx:TextInput id="streetNumber" toolTip="Enter streetNumber"/> <mx:Spacer width="50"/> <mx:Label text="Enter City" /> <mx:Spacer width="20"/> <mx:TextInput id="City" toolTip="Enter City"/> <mx:Spacer width="50"/> <mx:Label text="Enter Country" /> <mx:Spacer width="20"/> <mx:TextInput id="Country" toolTip="Enter Country"/> <mx:Spacer width="50"/> <mx:Label text="Enter Zip" /> <mx:Spacer width="20"/> <mx:TextInput id="Zip" toolTip="Enter Zip"/> <mx:Spacer width="50"/> <mx:Label text="Enter Address" /> <mx:Spacer width="60"/> <mx:TextInput id="address" toolTip="Enter Address" enter="gotoLocation()" /> <mx:Spacer width="50"/> <mx:Button label="ShowLocation" click="gotoLocation()"/> <mx:Spacer width="20"/> </mx:VBox> <mx:UIComponent id="mapContainer" width="600" height="400" horizontalCenter="0" verticalCenter="0"/> </mx:Application> MY mapWindowInfo.as (class) /* * Copyright 2008 Google Inc. * Licensed under the Apache License, Version 2.0: * http://www.apache.org/licenses/LICENSE-2.0 */ package classes { import flash.display.Bitmap; import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; import flash.events.MouseEvent; import flash.events.Event; import mx.core.UIComponent; import mx.controls.LinkButton; import flash.net.URLRequest; import flash.net.navigateToURL; /** * InfoWindowSprite consists of several ellipses arranged in a 'thought bubble' * manner, the largest of which contains an embedded image and a circular * close button. * It can dispatch an Event instance (type: "close"), which the user can listen * for and use to call map.closeInfoWindow(); */ public class mapWindowInfo extends UIComponent { public function mapWindowInfo(pinXMLInfo:XML) { // Draw info window frame var rectangle:Sprite = new Sprite(); rectangle.graphics.lineStyle(2, 0xc2deea, 100, true); rectangle.graphics.beginFill(0x2c4564); rectangle.graphics.moveTo(0, 0); rectangle.graphics.lineTo(440, 0); rectangle.graphics.lineTo(440, 160); rectangle.graphics.lineTo(0, 160); rectangle.graphics.lineTo(0, 0); rectangle.graphics.endFill(); // Draw close area rect var xbox:Sprite = new Sprite(); xbox.graphics.beginFill(0xc2deea); xbox.graphics.drawRoundRect(410, 7, 20, 20,5); xbox.graphics.endFill(); // Add close 'X' var xTextFormat:TextFormat = new TextFormat(); xTextFormat.font = "Verdana"; xTextFormat.color = 0xFEFEFE; xTextFormat.size = 21; xTextFormat.bold = true; var xText:TextField = new TextField(); xText.x = 410; xText.y = 2; xText.text = "X"; xText.setTextFormat(xTextFormat); // Add title text var titleTextFormat:TextFormat = new TextFormat(); titleTextFormat.font = "Verdana"; titleTextFormat.color = 0xFEFEFE; titleTextFormat.size = 20; titleTextFormat.align = "left"; var titleTextField:TextField = new TextField(); titleTextField.x = 10; titleTextField.y = 5; titleTextField.width = 300; titleTextField.text = pinXMLInfo.attribute("name").toString(); titleTextField.selectable = false; titleTextField.setTextFormat(titleTextFormat); // Add body text address description and URL var infoTextFormat:TextFormat = new TextFormat(); infoTextFormat.font = "Verdana"; infoTextFormat.color = 0xFEFEFE; infoTextFormat.size = 12; infoTextFormat.align = "left"; var infoTextField:TextField = new TextField(); infoTextField.x = 10; infoTextField.y = 28; infoTextField.width = 400; infoTextField.height = 270; infoTextField.autoSize = TextFieldAutoSize.LEFT; infoTextField.multiline = true; infoTextField.wordWrap = true; infoTextField.text = pinXMLInfo.description.toString(); infoTextField.selectable = false; infoTextField.setTextFormat(infoTextFormat); // address var addressTextField:TextField = new TextField(); addressTextField.x = 10; addressTextField.y = 105; addressTextField.width = 200; addressTextField.height = 100; addressTextField.autoSize = TextFieldAutoSize.LEFT; addressTextField.text = pinXMLInfo.address.toString(); addressTextField.selectable = false; addressTextField.setTextFormat(infoTextFormat); // link var urlTextFormat:TextFormat = new TextFormat(); urlTextFormat.font = "Verdana"; urlTextFormat.color = 0x00FF00; urlTextFormat.size = 12; urlTextFormat.align = "left"; var urlTextField:TextField = new TextField(); urlTextField.text = "<a href=" + pinXMLInfo.link.attribute ("url").toString() + ">"; urlTextField.x = 10; urlTextField.y = 125; urlTextField.width = 200; urlTextField.height = 100; urlTextField.autoSize = TextFieldAutoSize.LEFT; urlTextField.setTextFormat(urlTextFormat); // link button var clickMore:LinkButton = new LinkButton(); clickMore.width = 200; clickMore.height = 100; clickMore.x = 150; clickMore.y = 125; clickMore.label = "URL BUTTON"; clickMore.addEventListener(MouseEvent.CLICK, function (e:MouseEvent):void { var request:URLRequest = new URLRequest (pinXMLInfo.link.attribute("url").toString()); navigateToURL(request, "_blank"); }); rectangle.addChild(titleTextField); rectangle.addChild(xbox); rectangle.addChild(xText); rectangle.addChild(infoTextField); rectangle.addChild(addressTextField); rectangle.addChild(urlTextField); rectangle.addChild(clickMore); // position the infowindow up and to the right of the marker rectangle.x = 10; rectangle.y = -10; addChild(rectangle); cacheAsBitmap = true; } } } Thanks Elisheva On Dec 15, 7:01 am, "pamela (Google Employee)" <[email protected]> wrote: > Hi Elisheva- > There should be an href in your <a> anchor, e.g. <a > href="http://www.google.com">. If that doesn't work, you can use a LinkButton: > > var clickMore:LinkButton = new LinkButton(); > clickMore.percentWidth = 100; > clickMore.label = clickMoreMessage; > clickMore.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void > { > var request:URLRequest = new URLRequest(clickUrl); > navigateToURL(request, "_blank"); > }); > infobox.addChild(clickMore); > > - pamela > > > > On Fri, Dec 12, 2008 at 5:29 AM, Elisheva <[email protected]> wrote: > > > Hit the tab twice by mistake.... > > > I see all the text but the URL does not behave like one, > > > Has any one tries it....and can send me an example working code for > > that ??? > > > Thanks > > > Elisheva > > > On Dec 11, 8:27 pm, Elisheva <[email protected]> wrote: > > > Hi, > > > > After the long subject header... > > > > I have a googleMaps app, which uses markers, infoWindows and > > > customContent. > > > > The customContent is an AS3 class, and it works great....except when I > > > want to use the > > > textField.htmlText. > > > > my as3 class looks like: > > > > /* > > > * Copyright 2008 Google Inc. > > > * Licensed under the Apache License, Version 2.0: > > > * http://www.apache.org/licenses/LICENSE-2.0 > > > */ > > > package classes { > > > > import flash.display.Sprite; > > > import flash.text.TextField; > > > import flash.text.TextFieldAutoSize; > > > import flash.text.TextFormat; > > > > import mx.controls.Text; > > > > /** > > > * Display info window - use a navy blue rectangle > > > * in it insert title, text, and htmlText > > > */ > > > > public class InfoWindowSprite extends Sprite { > > > > public function InfoWindowSprite() { > > > // Draw info window frame > > > > var infobox:Sprite = new Sprite(); > > > // draw rectangle > > > infobox.graphics.lineStyle(2, 0xc2deea, 1, true); > > > infobox.graphics.beginFill(0x223344); > > > infobox.graphics.drawRoundRect(-75, -110, 440, 161, 10, 10); > > > > // Draw close area rect > > > var xbox:Sprite = new Sprite(); > > > xbox.graphics.beginFill(0xc2deea); > > > xbox.graphics.drawRoundRect(330, -105, 30, 30,5); > > > xbox.graphics.endFill(); > > > // Add close 'X' > > > var xTextFormat:TextFormat = new TextFormat(); > > > xTextFormat.font = "Verdana"; > > > xTextFormat.color = 0xFEFEFE; > > > xTextFormat.size = 21; > > > xTextFormat.bold = true; > > > > var xText:TextField = new TextField(); > > > xText.x = 335; > > > xText.y = -105; > > > xText.text = "X"; > > > xText.setTextFormat(xTextFormat); > > > > // Add title text > > > var titleTextFormat:TextFormat = new TextFormat(); > > > titleTextFormat.font = "Verdana"; > > > titleTextFormat.color = 0xFEFEFE; > > > titleTextFormat.size = 20; > > > titleTextFormat.align = "left"; > > > > var titleTextField:TextField = new TextField(); > > > titleTextField.x = -70; > > > titleTextField.y = -110; > > > titleTextField.width = 300; > > > titleTextField.text = "This is the title"; > > > titleTextField.selectable = false; > > > titleTextField.setTextFormat(titleTextFormat); > > > > // link > > > var urlTextField:TextField = new TextField(); > > > urlTextField.x = -70; > > > urlTextField.y = 20; > > > urlTextField.width = 200; > > > urlTextField.height = 100; > > > urlTextField.autoSize = TextFieldAutoSize.LEFT; > > > urlTextField.htmlText = "<a>"; > > > urlTextField.htmlText+="http://www.google.com"; > > > urlTextField.htmlText+="</a>"; > > > urlTextField.setTextFormat(titleTextFormat); > > > > infobox.addChild(titleTextField); > > > infobox.addChild(urlTextField); > > > infobox.x = 50; > > > infobox.y = 50; > > > addChild(infobox) > > > cacheAsBitmap = true; > > > } // end function > > > > } // end class > > > > } // end package > > > > My mxml is as the sample example, the call to the infoWindow looks > > > like: > > > > var marker:Marker = new Marker(latlng, markerOptions); > > > > infoSprite = new InfoWindowSprite(pinXMLInfo); > > > > var options:InfoWindowOptions = new InfoWindowOptions({ > > > customContent: infoSprite, > > > /* customOffset: new Point(50, 50), */ > > > customCloseRect: new Rectangle(400, 0, > > 30, 30) > > > }); > > > marker.addEventListener(MapMouseEvent.CLICK, > > function > > > (e:Event):void { > > > marker.openInfoWindow(options); > > > }); > > > map.addOverlay(marker);- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
