Flash example doesn't compile in Flash CS4
The Flash example does not compile in Flash CS4.
(com folder moved into same directory with .fla file)
Error log:
**Error**...as3\samples\flash\ModestMapsSample.as, Line 95: 1119: Access of possibly undefined property CLICK through a reference with static type Class.
map.addEventListener(MarkerEvent.CLICK, onMarkerClick);
**Error**...as3\samples\flash\ModestMapsSample.as, Line 96: 1119: Access of possibly undefined property ROLL_OVER through a reference with static type Class.
map.addEventListener(MarkerEvent.ROLL_OVER, onMarkerRollOver);
**Error**...as3\samples\flash\ModestMapsSample.as, Line 97: 1119: Access of possibly undefined property ROLL_OUT through a reference with static type Class.
map.addEventListener(MarkerEvent.ROLL_OUT, onMarkerRollOut);
**Warning**...as3\lib\com\modestmaps\extras\MapControls.as, Line 212: Warning: 1090: Migration issue: The onMouseDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseDown', callback_handler).
private function onMouseDown(event:MouseEvent):void
**Warning**...as3\lib\com\modestmaps\extras\ZoomSlider.as, Line 67: Warning: 1060: Migration issue: The method drawCircle is no longer supported. Use the Graphics.drawOval method instead..
thumb.graphics.drawCircle(0,0,5);
**Warning**...as3\lib\com\modestmaps\overlays\MarkerClip.as, Line 161: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
return marker.x > -w / 2 && marker.x < w / 2 &&
**Warning**...as3\lib\com\modestmaps\overlays\MarkerClip.as, Line 176: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
return markers.indexOf(marker) != -1;
**Warning**...as3\lib\com\modestmaps\overlays\MarkerClip.as, Line 246: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
doSort = updateClip(marker) || doSort; // wow! bad things did happen when this said doSort ||= updateClip(marker);
**Warning**...as3\lib\com\modestmaps\core\Tile.as, Line 60: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
return this.alpha == 1.0;
Total ActionScript Errors: 3, Reported Errors: 3
Just me?
(com folder moved into same directory with .fla file)
Error log:
**Error**...as3\samples\flash\ModestMapsSample.as, Line 95: 1119: Access of possibly undefined property CLICK through a reference with static type Class.
map.addEventListener(MarkerEvent.CLICK, onMarkerClick);
**Error**...as3\samples\flash\ModestMapsSample.as, Line 96: 1119: Access of possibly undefined property ROLL_OVER through a reference with static type Class.
map.addEventListener(MarkerEvent.ROLL_OVER, onMarkerRollOver);
**Error**...as3\samples\flash\ModestMapsSample.as, Line 97: 1119: Access of possibly undefined property ROLL_OUT through a reference with static type Class.
map.addEventListener(MarkerEvent.ROLL_OUT, onMarkerRollOut);
**Warning**...as3\lib\com\modestmaps\extras\MapControls.as, Line 212: Warning: 1090: Migration issue: The onMouseDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseDown', callback_handler).
private function onMouseDown(event:MouseEvent):void
**Warning**...as3\lib\com\modestmaps\extras\ZoomSlider.as, Line 67: Warning: 1060: Migration issue: The method drawCircle is no longer supported. Use the Graphics.drawOval method instead..
thumb.graphics.drawCircle(0,0,5);
**Warning**...as3\lib\com\modestmaps\overlays\MarkerClip.as, Line 161: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
return marker.x > -w / 2 && marker.x < w / 2 &&
**Warning**...as3\lib\com\modestmaps\overlays\MarkerClip.as, Line 176: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
return markers.indexOf(marker) != -1;
**Warning**...as3\lib\com\modestmaps\overlays\MarkerClip.as, Line 246: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
doSort = updateClip(marker) || doSort; // wow! bad things did happen when this said doSort ||= updateClip(marker);
**Warning**...as3\lib\com\modestmaps\core\Tile.as, Line 60: Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
return this.alpha == 1.0;
Total ActionScript Errors: 3, Reported Errors: 3
Just me?
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi,
This is my fault, sorry. The three errors above can be corrected in ModestMapsSample.as by changing the following values:
MarkerEvent.CLICK should be MarkerEvent.MARKER_CLICK
MarkerEvent.ROLL_OVER should be MarkerEvent.MARKER_ROLL_OVER
MarkerEvent.ROLL_OUT should be MarkerEvent.MARKER_ROLL_OUT
This is to avoid clashes (and event type errors) if you're also listening for MouseEvents on the same map.
We'll try to update the downloads soon - thanks for letting us know.
Loading Profile...



EMPLOYEE