>> var image1 = 'pa.png'; You made a string... It's best to stick the image on stage, and turn it into a movie clip. Then right-click the clip in the library and set it to export for actionScript - I assume you give it a class name of pa.
Then var image1:MovieClip = new pa(); Then you can set the icon property of the marker to image1. Using a movie clip is nice because you can also inject data into it when you create it - like an index property for an array. When it's clicked you can get the index from it and use that to get data or whatever. From: [email protected] [mailto:[email protected]] On Behalf Of Andi Sent: Tuesday, April 19, 2011 9:24 AM To: [email protected] Subject: [Google Maps API For Flash] Custom markers How to add custom markers in flash ? I`ve tried ... var image1 = 'pa.png'; ... var markerOptions:MarkerOptions = new MarkerOptions(); markerOptions.icon = image1 as Bitmap; markerOptions.iconAlignment = MarkerOptions.ALIGN_HORIZONTAL_CENTER; markerOptions.iconOffset = new Point(2,2); var marker:Marker = new Marker(new LatLng(loadedData[j][9],loadedData[j][10]),markerOptions); map.addOverlay(marker); ... And is not working , any suggestions for me? -- 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. Notice: This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this e-mail in error, please immediately notify us by calling the Help Desk at (800) 696-0015. -- 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.
