Get your own customer support community
 

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?
Inappropriate?
1 person has this problem

User_default_medium