 		private function onMapBoundsChanged():void
 		{
 			IEventDispatcher(_strand).dispatchEvent( new org.apache.flex.events.Event("boundsChanged") );
-			//_loader.window.recenter();
 		}
 
 		/**


				// custom event handlers
				_loader.window.addEventListener("searchResults",onSearchResults);
				_loader.window.addEventListener("markerClicked",onMarkerClicked);*/
			}

			IEventDispatcher(_strand).dispatchEvent(new org.apache.flex.events.Event("ready"));

				page = pageTemplateStart + "&key=" + token + pageTemplateEnd;
			else
				page = pageTemplateStart + pageTemplateEnd;
			
			var pathToFile:String;
			
			if (page) {
				pathToFile = File.applicationDirectory.resolvePath('flexjs_mapapi.html').nativePath;
				var someFile:File = new File(pathToFile);
				var writeStream:FileStream = new FileStream();
				writeStream.open(someFile, FileMode.WRITE);
				writeStream.writeUTFBytes(page);
				writeStream.close();
			}
			
			_loader.load(new URLRequest("file://"+pathToFile));
			_loader.addEventListener(flash.events.Event.COMPLETE, completeHandler);
		}

		private function completeHandler(event:flash.events.Event):void
		{
			if (_loader && page) {
				_loader.window.map.center_changed = onMapCentered;
				_loader.window.map.bounds_changed = onMapBoundsChanged;
				_loader.window.map.zoom_changed   = onMapZoomChanged;
				_loader.window.map.dragend        = onMapDragEnd;
