Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-04-2006, 01:24 PM   #1
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default dataTipFunction

I have an array as the dataProvider for my ColumnChart, which has several properties {Name,Target,Amount}, I'm using the overlaid chart type, so I can use the SeriesInterpolate effect (doesn't work with stacked).

Without formatting the dataTips, the values are displayed correctly, albeit not in the format I would like, evidencing that Flex is distinguishing between the varying values.

How do I find out which array value correlates to the current Hitdata being passed for each dataTip? The function accepts a parameter typed "HitData", but how do I access what index value the chart is passing, or the property name (i.e. is it Target or Amount?).
flexy is offline   Reply With Quote
Old 08-07-2006, 09:39 AM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

ok target is always the object dispatching the event. the data tip function should contain the information which you are looking for. someone is just checking quickly what it is here in the office.

y = hitdataEvent.item.objectYouPassedIntoTheDataprovid er.key
x = hitdataEvent.childItem.index
__________________
oi poloi
http://www.memorphic.com/news/

Last edited by hangalot; 08-07-2006 at 09:42 AM.
hangalot is offline   Reply With Quote
Old 08-07-2006, 10:24 AM   #3
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

Ah great. Will have another look into this, but any extra info would be gratefully received!
flexy is offline   Reply With Quote
Old 08-07-2006, 10:26 AM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

rtfm
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-07-2006, 10:33 AM   #5
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

yeh, thanks for that.
flexy is offline   Reply With Quote
Old 08-07-2006, 12:02 PM   #6
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:45 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.