Changeset 612
- Timestamp:
- 07/17/08 13:48:06 (2 months ago)
- Files:
-
- branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as (modified) (1 diff)
- branches/tom-tweenlite/lib/com/modestmaps/core/TweenTile.as (modified) (2 diffs)
- branches/tom-tweenlite/lib/com/modestmaps/extras/ZoomSlider.as (modified) (2 diffs)
- branches/tom-tweenlite/lib/com/modestmaps/Map.as (modified) (1 diff)
- branches/tom-tweenlite/swc/bin/ModestMapsSWC.swc (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as
r611 r612 904 904 zooming = false; 905 905 906 dispatchEvent(new MapEvent(MapEvent.ST ART_ZOOMING, zoomLevel));906 dispatchEvent(new MapEvent(MapEvent.STOP_ZOOMING, zoomLevel)); 907 907 } 908 908 branches/tom-tweenlite/lib/com/modestmaps/core/TweenTile.as
r603 r612 16 16 super(col, row, zoom); 17 17 } 18 19 override public function hide():void 20 { 21 // *** don't *** kill the tweens when hiding 22 // it seems there's a harmless bug where hide might get called after show 23 // if there's a tween running it will correct it though :) 24 //TweenLite.killTweensOf(this); 25 this.alpha = 0; 26 } 18 27 19 28 override public function show():void … … 26 35 override public function showNow():void 27 36 { 28 if (alpha < 1) { 29 TweenLite.to(this, 0, { alpha: 1 }); 30 } 37 TweenLite.killTweensOf(this); 38 this.alpha = 1; 31 39 } 32 40 } branches/tom-tweenlite/lib/com/modestmaps/extras/ZoomSlider.as
r599 r612 32 32 map.addEventListener(MapEvent.ZOOMED_BY, update); 33 33 map.addEventListener(MapEvent.STOP_ZOOMING, update); 34 map.addEventListener(MapEvent.START_ZOOMING, update); 34 35 35 36 this.x = 15; … … 86 87 public function update(event:MapEvent=null):void 87 88 { 89 if (event) trace(event.type, "in ZoomSlider.update"); 88 90 if (!dragging) { 89 91 proportion = (map.grid.zoomLevel - map.grid.minZoom) / (map.grid.maxZoom - map.grid.minZoom); branches/tom-tweenlite/lib/com/modestmaps/Map.as
r609 r612 887 887 return tile; 888 888 } 889 trace("made", tileCount++, "tiles");889 //trace("made", tileCount++, "tiles"); 890 890 return new Tile(column, row, zoom); 891 891 }
