still no takers?
On May 23, 3:29 pm, mlecho <[email protected]> wrote:
> ok, i give up. I thought this would be as simple as placing a map into
> a movieclip, and then mamking that clip a MovieMaterial for a
> papervision primitive. However, it seems that the maps will not
> intiate until they are on "stage" proper. Or for whatever reason, i
> can not get the map to display unless i place it direct onto the
> stage, which then makes the asset useless for papervision. Anyone have
> experience getting a map into a papervision prmitive WITHOUT using
> Flex. I have seen a few tuts on working with Flex, but i am not going
> that direction.
> Here's what i tried
>
> mc = new MovieClip();
>
> var g:Graphics = mc.graphics;
> g.beginFill(0xcccccc,1)
> g.drawRect(0,0,this.mapWidth,this.mapHeight)
> g.endFill();
>
> map = new Map();
> map.key = String(MapLab.instance.googleKey);
> map.setSize(new Point(mapWidth,mapHeight));
>
> map.addEventListener(MapEvent.MAP_READY, onMapReady);
> mc.addChild(map);
>
> var mm:MovieMaterial = new MovieMaterial(mc,true);
> mm.doubleSided = true
> mm.interactive= true;
>
> var lt:Object = MapLab.instance.light;
> var gm:GouraudMaterial = new GouraudMaterial
> (lt.light,lt.color,lt.ambient);
> gm.doubleSided = false;
> var mList:MaterialsList = new MaterialsList()
> mList.addMaterial(gm,'all')
> mList.addMaterial(mm,'front')
>
> var c:Cube = new
> Cube(mList,this.mapWidth,10,mapHeight)
> addChild(c)//add to the DisplayObject3D class we are
> working in
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---