Changeset 612

Show
Ignore:
Timestamp:
07/17/08 13:48:06 (2 months ago)
Author:
tom
Message:

fixed stop zooming event bug in tweenlite branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as

    r611 r612  
    904904                        zooming = false; 
    905905 
    906                         dispatchEvent(new MapEvent(MapEvent.START_ZOOMING, zoomLevel)); 
     906                        dispatchEvent(new MapEvent(MapEvent.STOP_ZOOMING, zoomLevel)); 
    907907                } 
    908908 
  • branches/tom-tweenlite/lib/com/modestmaps/core/TweenTile.as

    r603 r612  
    1616                        super(col, row, zoom); 
    1717                }  
     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                } 
    1827                 
    1928                override public function show():void  
     
    2635                override public function showNow():void  
    2736                { 
    28                         if (alpha < 1) { 
    29                                 TweenLite.to(this, 0, { alpha: 1 }); 
    30                         } 
     37                        TweenLite.killTweensOf(this); 
     38                        this.alpha = 1; 
    3139                }                
    3240        } 
  • branches/tom-tweenlite/lib/com/modestmaps/extras/ZoomSlider.as

    r599 r612  
    3232            map.addEventListener(MapEvent.ZOOMED_BY, update); 
    3333            map.addEventListener(MapEvent.STOP_ZOOMING, update); 
     34            map.addEventListener(MapEvent.START_ZOOMING, update); 
    3435             
    3536                        this.x = 15; 
     
    8687                public function update(event:MapEvent=null):void 
    8788                { 
     89                        if (event) trace(event.type, "in ZoomSlider.update"); 
    8890                        if (!dragging) { 
    8991                                proportion = (map.grid.zoomLevel - map.grid.minZoom) / (map.grid.maxZoom - map.grid.minZoom); 
  • branches/tom-tweenlite/lib/com/modestmaps/Map.as

    r609 r612  
    887887                        return tile; 
    888888                } 
    889                 trace("made", tileCount++, "tiles"); 
     889                //trace("made", tileCount++, "tiles"); 
    890890                return new Tile(column, row, zoom); 
    891891            }