Changeset 2829 for lang/actionscript/swfgmap
- Timestamp:
- 12/08/07 03:34:56 (13 months ago)
- Location:
- lang/actionscript/swfgmap/trunk
- Files:
-
- 2 added
- 5 modified
-
TestApp.as (modified) (3 diffs)
-
TestApp.swf (modified) (previous)
-
gyuque/gmap/Animation.as (added)
-
gyuque/gmap/GMapView.as (modified) (2 diffs)
-
gyuque/gmap/IAnimationDispatcher.as (added)
-
gyuque/gmap/Layer.as (modified) (2 diffs)
-
gyuque/gmap/ui/Spinner.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/swfgmap/trunk/TestApp.as
r2693 r2829 6 6 import gyuque.gmap.ui.Spinner; 7 7 import mx.events.SliderEvent; 8 import flash.events.*; 8 9 9 10 public class TestApp extends GMapView … … 26 27 var spnr:Spinner = new Spinner(64); 27 28 addChild(spnr); 28 spnr.addEventListener( SliderEvent.THUMB_DRAG , onSpinner);29 spnr.addEventListener(MouseEvent.CLICK, onSpinReset); 29 30 30 31 spnr.x = 8; 31 32 spnr.y = 8; 33 34 spnr.centerButton.addEventListener(SliderEvent.THUMB_DRAG , onSpinner); 32 35 mSpnr = spnr; 33 36 } … … 38 41 fireViewportChange(); 39 42 } 43 44 protected function onSpinReset(e:MouseEvent):void 45 { 46 } 40 47 } 41 48 } -
lang/actionscript/swfgmap/trunk/gyuque/gmap/GMapView.as
r2665 r2829 8 8 import gyuque.gmap.googlemaps.*; 9 9 10 public class GMapView extends MovieClip implements IDebugOut 10 public class GMapView extends MovieClip implements IDebugOut, IAnimationDispatcher 11 11 { 12 12 private static const GOOGLE_LOGO_URL:String = "http://www.google.com/intl/ja_jp/mapfiles/poweredby.png"; … … 180 180 fireViewportChange(dx, dy); 181 181 } 182 } 183 184 public function addAnimation(a:Animation):void 185 { 182 186 } 183 187 -
lang/actionscript/swfgmap/trunk/gyuque/gmap/Layer.as
r2528 r2829 5 5 import flash.geom.Point; 6 6 7 public class Layer extends Sprite 7 public class Layer extends Sprite implements IAnimationDispatcher 8 8 { 9 9 protected var mViewport:GMapViewport; … … 34 34 protected function onViewportChanged(e:GMapViewEvent):void 35 35 {} 36 37 public function addAnimation(a:Animation):void 38 { 39 if (mParent is IAnimationDispatcher) 40 IAnimationDispatcher(mParent).addAnimation(a); 41 } 36 42 } 37 43 } -
lang/actionscript/swfgmap/trunk/gyuque/gmap/ui/Spinner.as
r2693 r2829 64 64 65 65 mValue = 0; 66 } 67 68 public function get centerButton():SimpleButton 69 { 70 return mResetBtn; 66 71 } 67 72
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)