Greetings from Boise!
 
I've imported the necessary Classes, I believe:

import com.google.maps.StyledMapType; 
import com.google.maps.StyledMapTypeOptions;
import com.google.maps.styles.MapTypeStyle;
import com.google.maps.styles.MapTypeStyleElementType;
import com.google.maps.styles.MapTypeStyleFeatureType;
import com.google.maps.styles.MapTypeStyleRule;

 
And I've successfully set up the MapTypeStyle Array: 

var bsuMapTypeStyle:Array = [ 
        
  new MapTypeStyle(MapTypeStyleFeatureType.ROAD_HIGHWAY, 
   MapTypeStyleElementType.GEOMETRY,
    [MapTypeStyleRule.hue(0xff0000), MapTypeStyleRule.saturation(100), 
MapTypeStyleRule.lightness(0)]),
     
  new MapTypeStyle(MapTypeStyleFeatureType.ROAD_ARTERIAL,
   MapTypeStyleElementType.GEOMETRY,
    [MapTypeStyleRule.hue(0x00ff00), MapTypeStyleRule.saturation(100), 
MapTypeStyleRule.lightness(0)])
   
 ]

 
But when I declare the new StyledMapType:
 

var bsu_Map_Type:StyledMapType = new StyledMapType(bsuMapTypeStyle);

 
...I get an "Error #1099 (Cannot access a property or method of a null 
object reference). at com.google.maps::StyledMapType() at 
map_customized_color_fla::MainTimeline/frame1().
 
*map_cusotmized_color_fla is the .fla file, I figure, and the script is in 
frame 1 (not using a Document Class on this one).*
 
I'm kind of a newbie to coding. Am I missing something painfully obvious? 
When I comment out the var bsu_Map_Type Declaration the map works great!
 
Thanks!
Leo
 
 

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