Display the name of the POI when mouse-overing on the drag and drop panel
authorAndy Allan <gravitystorm@gmail.com>
Sat, 1 May 2010 14:44:34 +0000 (14:44 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sat, 1 May 2010 14:44:34 +0000 (14:44 +0000)
net/systemeD/potlatch2/TagViewer.mxml

index c5cc3fe..45d6a0e 100644 (file)
@@ -7,11 +7,13 @@
 
 <mx:ViewStack id="sidebar" width="100%" height="100%" creationPolicy="all">
   <mx:VBox id="dndPanel" width="100%" height="100%">
-    <mx:Text text="Drag and Drop Points of Interest" />
+    <!-- FIXME the panel text is repeated below for mouseOut -->
+    <mx:Text id="dndPanelText" text="Drag and Drop Points of Interest" />
     <mx:TileList id="poiGrid" dataProvider="{MapFeatures.getInstance().pois}" width="100%">
       <mx:itemRenderer>
         <mx:Component>
-          <mx:VBox>
+          <mx:VBox mouseOver="parentDocument.dndPanelText.text = data.name"
+                   mouseOut="parentDocument.dndPanelText.text = 'Drag and Drop Points of Interest'">
             <mx:Script><![CDATA[
               import mx.events.DragEvent;
               import mx.managers.DragManager;