Got it.. I was developing/testing in the MapSimple.fla, which has got
an older version of the component inside it. You guys might want to
update it.

On 31 okt, 11:32, sebass <[EMAIL PROTECTED]> wrote:
> I've actually got the same problem. Same error message when compiling
> my app (Flash CS3).. Fixed the typo too, by the way..
>
> I am using the official component..
>
> On 14 okt, 04:51, "pamela (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi Arain-
>
> > Your code worked fine for me when I used our official component and I
> > capitalized the onMapPreinitialize function correctly.
>
> > - pamela
>
> > On Tue, Oct 14, 2008 at 11:48 AM, pamela (Google Employee)
>
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Arain-
>
> > > Are you sure you're using our official component from the 1.7 release?
> > > I have very similar code and it works fine. See the .fla file here:
> > >http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/CrazySeaDemo/
>
> > > - pamela
>
> > > On Tue, Oct 14, 2008 at 10:54 AM, Arain <[EMAIL PROTECTED]> wrote:
>
> > >> I am using the Adobe Flash CS3 to compile following code
>
> > >> import com.google.maps.LatLng;
> > >> import com.google.maps.Map;
> > >> import com.google.maps.MapEvent;
> > >> import com.google.maps.MapType;
> > >> import com.google.maps.MapOptions;
>
> > >> var map:Map = new Map();
> > >> map.key =
> > >> "ABQIAAAA7Ey0S1PkOLMIi8lS7nQHAxQyxurgCDnJXGVEAAHSafApUzjf9hR1CrvS0Nkauq6Zn3­­1tY35hgwC7WQ";
>
> > >> map.addEventListener(MapEvent.MAP_PREINITIALIZE, onMapPreinitialize);
>
> > >> function onMappreinitialize(event:MapEvent):void {
> > >>        this.map.setInitOptions(    new MapOptions({      center: new
> > >> LatLng(40.736072,-73.992062),      zoom: 14,      mapType:
> > >> MapType.NORMAL_MAP_TYPE    }));}
>
> > >> In above code the line
> > >> map.addEventListener(MapEvent.MAP_PREINITIALIZE, onMapPreinitialize);
> > >> gives following error
>
> > >> 1119: Access of possibly undefined property MAP_PREINITIALIZE through
> > >> a reference with static type Class.
> > >> 1120: Access of undefined property onMapPreinitialize.
>
> > >> How to fix this error ??/- Tekst uit oorspronkelijk bericht niet 
> > >> weergeven -
>
> > - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk 
> > bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
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