Hey Tom-

Apologies, I just looked again at the DisplayObject reference. You'll
need to create a Sprite (first method), since Sprites can contain
multiple subchildren.

- pamela

On Tue, Oct 14, 2008 at 1:07 PM, tomcattyy <[EMAIL PROTECTED]> wrote:
>
> Hello Pamela,
>
> I guess i have to go with the first method, because the forground
> property do not have the addChild method. I got
> 1061: Call to a possibly undefined method addChild through a reference
> with static type flash.display:DisplayObject.
> More thoughts for the method 2?
>
> Thanks
>
> On Oct 13, 9:42 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>> Hey Tom-
>>
>> It'd look like:
>>
>> marker.foreground.addChild(bla);
>>
>> - pamela
>>
>>
>>
>> On Tue, Oct 14, 2008 at 12:41 PM, tomcattyy <[EMAIL PROTECTED]> wrote:
>>
>> > Thanks pamela,
>>
>> > Did not quite got what you mean "on the forground property" - I try to
>> > addChild to the marker itselt but the marker
>> > will not take it. Thanks
>>
>> > On Oct 13, 9:33 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
>> > wrote:
>> >> Hi Tom-
>>
>> >> You could try:
>> >> 1) creating a Sprite, adding both the image and text to that Sprite,
>> >> and specifying that Sprite as the icon?
>> >> or
>> >> 2) calling addChild on the foreground property of the Marker object.
>>
>> >> Try #2 first, as that'll be much easier.
>>
>> >> - pamela
>>
>> >> On Tue, Oct 14, 2008 at 12:20 PM, tomcattyy <[EMAIL PROTECTED]> wrote:
>>
>> >> > Thanks Pamela,
>>
>> >> > I am currently using custom icon and I just need to place a simple
>> >> > character together with the icon (just like a label did to the
>> >> > original marker). I remember label can not be used when using icon and
>> >> > I want to identify them so user can  match the details showing in the
>> >> > datagrid which is below the google map. Thanks for helping.
>>
>> >> > Mark
>>
>> >> > On Oct 13, 9:07 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
>> >> > wrote:
>> >> >> Hi Tom-
>>
>> >> >> I'm not sure exactly what visual effect you're going for, but you have
>> >> >> several options.
>>
>> >> >> Use label property in MarkerOptions (for just a few 
>> >> >> characters):http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/MarkerOptio...
>>
>> >> >> Use icon property in MarkerOptions to define custom 
>> >> >> DisplayObject:http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/CustomShape...
>>
>> >> >> Create a custom overlay to show text (tooltips 
>> >> >> example):http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/TooltipOver...
>>
>> >> >> - pamela
>>
>> >> >> On Tue, Oct 14, 2008 at 3:56 AM, tomcattyy <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Hello everyone,
>>
>> >> >> > I am trying to add a text desc together with marker, I first try to
>> >> >> > addChild from the marker but it seemed marker did not allow that. So 
>> >> >> > I
>> >> >> > am thinking if I can add text onto overlay with latlng info. Is there
>> >> >> > a sample or reference I can refering to? Thanks- Hide quoted text -
>>
>> >> >> - Show quoted text -- Hide quoted text -
>>
>> >> - Show quoted text -- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to