I wonder if any of you have a solution of setting the ground overlay
transparency wiht a slider? I searched the group but didn't find a
working solution. A pointer may help.
the onMayReady function:
protected function
map_mapevent_mapreadyHandler(event:MapEvent):void
{
map.enableScrollWheelZoom();
map.enableContinuousZoom();
map.setCenter(new LatLng(40.765641,-74.139235),
13);
//groupd overlay
testLoader = new Loader();
var urlRequest:URLRequest = new
URLRequest("http://
www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg");
testLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
function(e:Event):void {
groundOverlay = new
GroundOverlay(
testLoader,
new LatLngBounds(new
LatLng(40.716216,-74.213393),
new
LatLng(40.765641,-74.139235)));
map.addOverlay(groundOverlay);
});
testLoader.load(urlRequest);
}
//slider change event - Having issue with the sliderChange event...
private function sliderChange(event:Event):void
{
testLoader.alpha = slider.value;
map.addOverlay(groundOverlay);
}
Slider control:
<mx:HSlider id="slider"
minimum="0"
maximum="1"
value=".7"
snapInterval="0.05"
tickInterval="0.5"
liveDragging="true"
dataTipOffset="{slider.value}"
dataTipPrecision = "2"
showTrackHighlight="true"
change="sliderChange(event);" />
Any tips? Thanks!!
--
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.