Well, if the chart is sending the mouseOutData event after the
mouseOverData event, then your code will fail.

You might want to try something like this:


<![CDATA[
                  private var _mouseOverIndex:Number;
                  function visible_true(idx) {
                        statistics_box.visible=true;
                        _mouseOverIndex = idx;
                  }
                 
                  function visible_false(idx) {
                        if (idx == _mouseOverIndex)
                              statistics_box.visible=false;
                  }
                       
            ]]>


The functionality of this functions called in the following Pie Chart:

<mx:PieChart id="pieChartGr" height="100"
dataProvider="{internalChildren}"      showDataTips="true"
                                    dataTipFunction
= "dtFunc" mouseDown="goToChild(event)" width="277" minWidth="250"
                             
      mouseOverData="visible_true(event.hitData.index);"
mouseOutData="visible_false (event.hitData.index);" >




Ely.




-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dodenoros
Sent: Monday, May 15, 2006 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Movinig from Wedge to Wedge of pie chart the
effect doesn't work properly

hi
The PieChart is used
The purpose is to display any box with details appropriate to wedge.
When the mouse is over wedge the box with details appears, mouse out of
wedge box dissapears.

Moving mouse on wedge it works properly, but moving imidiately (without
leaving the pie) to another wedge the box is still dissapeared.

Two functions have been used:
<![CDATA[
                  function visible_true() {
                        statistics_box.visible=true;
                  }
                 
                  function visible_false() {
                        statistics_box.visible=false;
                  }
                       
            ]]>


The functionality of this functions called in the following Pie Chart:

<mx:PieChart id="pieChartGr" height="100"
dataProvider="{internalChildren}"      showDataTips="true"
                                    dataTipFunction
= "dtFunc" mouseDown="goToChild(event)" width="277" minWidth="250"
                             
      mouseOverData="visible_true();" mouseOutData="visible_false ();"
>

Any help and ideas?
Thanks

Regards,

David






------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology.
It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to