Weird!  Wouldn't have guessed double clicks were disabled by default.  Good to know, thanks!

Still doesn't make itemMouseUp work, though.

On 6/19/06, Ely Greenfield <[EMAIL PROTECTED]> wrote:

 
 
try setting the 'doubleClickEnabled' flag on the chart to true.
 
Ely.
 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan Troglodytes
Sent: Monday, June 19, 2006 11:24 AM
To: flexcoders
Subject: [flexcoders] bug in chart.itemDoubleClick/itemMouseUp?

Using the example given for the help topic "Handling user interactions with charts" works fine:

<?xml version="1.0"?>
<mx:Application xmlns:mx="

http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.controls.Alert;
import mx.charts.events.ChartItemEvent;
[Bindable]
public var dataSet:Object = [{Month: "Jan", Expenses: 1500},

{Month: "Feb", Expenses: 200},
{Month: "Mar", Expenses: 500}];
public function myListener(e:ChartItemEvent):void {
Alert.show("Chart data was clicked");

}
]]></mx:Script>
<mx:ColumnChart id="chart" itemClick="myListener(event)"
dataProvider="{dataSet}">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{dataSet}" categoryField="Month"/>
</mx:horizontalAxis>
<mx:series>
<mx:Array>
<mx:ColumnSeries yField="Expenses"/>

</mx:Array>
</mx:series>
</mx:ColumnChart>
</mx:Application>

However, if you change "itemClick" to "itemDoubleClick", it does not seem to work.  Same goes for "itemMouseUp."

--
Jason




--
Jason __._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to