Michalis

You might try adding

import flash.geom.Point;


Douglas S Learman
Principal
Price Learman Branding Design
218 Main St. #619
Kirkland, WA 98033
425-803-0333
www.pricelearman.com

Branding•Advertising•Print•Web•Social Media

On Jun 29, 2011, at 4:45 AM, Michalis Oikonomakis wrote:

> I am trying to use the Google map API in flash, i am also using the GAIA 
> framework to set everything up. 
> 
> When i put the code provided by google in my flash folder i am getting an 
> error, call of undefined method Point, 
> 
> I am using a separate file to write all my actionscript in, the code now 
> looks like this:
> 
> package com.mezzo.pages
> {
>     import com.gaiaframework.templates.AbstractPage;
>     import com.gaiaframework.events.*;
>     import com.gaiaframework.debug.*;
>     import com.gaiaframework.api.*;
>     import flash.display.*;
>     import flash.events.*;
>     import com.greensock.TweenMax;
>     import com.google.maps.LatLng;
>     import com.google.maps.Map;
>     import com.google.maps.MapEvent;
>     import com.google.maps.MapType;
>     
>     
>     public class ContactPage extends AbstractPage
>     {        
>     public var map:Map = new Map();
> 
>         public function ContactPage()
>         {
>             super();
>             alpha = 0;
>             
>         }
>         override public function transitionIn():void 
>         {
>             super.transitionIn();
>             TweenMax.to(this, 0.3, {alpha:1, 
> onComplete:transitionInComplete});
>             map.key = 
> "ABQIAAAA6RfVdhhZiY0vYVJWsVs97BR16Sl5WV4WI7kq5l1CCbZORnxcMhTQz-oQinntj2NJDN5yBIBubPnKjQ";
>             map.sensor = "true_or_false";
>             map.setSize(new Point(stage.stageWidth, stage.stageHeight));
>             map.addEventListener(MapEvent.MAP_READY, onMapReady);
>             this.addChild(map);
> 
> 
> 
>         }
>         
>         public function onMapReady(event:Event):void 
>         {
>                   map.setCenter(new LatLng(40.736072,-73.992062), 14, 
> MapType.NORMAL_MAP_TYPE);
>         }
>         override public function transitionOut():void 
>         {
>             super.transitionOut();
>             TweenMax.to(this, 0.3, {alpha:0, 
> onComplete:transitionOutComplete});
>         }
>     }
> }
> 
> 
> let me know if u see anything wrong with this.
> 
> Thanks
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API For Flash" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-maps-api-for-flash/-/UzOXTZW9FYIJ.
> 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.

-- 
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