Select to view content in your preferred language

MouseOver Infowindow Flicker problem

3453
5
11-15-2011 09:17 PM
tanyabisen
Emerging Contributor
Hello All,

I am using a mouse over event on my graphic. but I am facing a flicker issue of my infowindow if i move the position of a mouse a bit. My infowindow starts flickering..

Do i have to add some tolerance to the infowindow.. I am lost. Please help me
Tags (2)
0 Kudos
5 Replies
KenBuja
MVP Esteemed Contributor
Please post your code
0 Kudos
tanyabisen
Emerging Contributor
private function onMouseOverHandler(event:MouseEvent):void
   {
    var gr:Graphic = Graphic(event.target);
    textArea.visible=true;
    gr.symbol = mySymbol;
    textArea.htmlText = " <b><font color='#0000FF'>Ward No. " + " #" + gr.attributes.Ward_No.toString()+ "</font></b>" + "\n" + " " + gr.attributes.Ward_Name.toString()+ "\n" + " Bengaluru,Karnataka" ;
    myMap.infoWindow.closeButtonVisible = false;
    myMap.infoWindow.content = textArea;
    myMap.infoWindow.label = " " + FlexGlobals.topLevelApplication.parameters.username;
    myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));
   }
0 Kudos
CarmenDurham
Frequent Contributor
I can at least verify what Tanya is seeing as I see it also.  The infowindow flickers as you move the cursor slightly in the direction of the infowindow itself.  If you move the mouse in any other direction from the graphic, the infowindow will disappear (as expected).

In another situation, I am using a more complex InfoSymbol and it behaves much better.  The cursor will flicker if moved slightly in the direction of the infoSymbol, but at least the popup itself will disappear and not flicker. 

Carmen
0 Kudos
KenBuja
MVP Esteemed Contributor
Could it be related to this issue? What happens when you use the RollOver event instead of the MouseOver event?
0 Kudos
CarmenDurham
Frequent Contributor
Ken,

I was using a PictureMarkerSymbol for the graphic so I thought maybe the ROLLOVER would work after reading the other post.

But it didn't for me.  I am using 2.5 API.  I even tried changing the symbol for the graphic to a simple marker symbol and still had the same behavior with the infosymbol.  It is only when the cursor moves a little over the "tail" of the infowindow.  Until this morning, I was using the 2.0 or 2.4 API with the same result.

Thanks for replying,
Carmen
0 Kudos