RE: [flexcoders] Adding Event to Object that doesnt have one
Ha! I figured out the xml thing. i.e. why when referencing 01, I had to use a 1. chartXML.lastResult.month[1].day Month[1] is an array reference! I figured it out when I wasn't getting any data for December! :) You probably knew that but I didn't. I thought I was directly referencing/compariing on the "02" string for month_name. However, I was referencing the array position for month_name. Thanks! -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, February 06, 2008 9:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adding Event to Object that doesnt have one On Wednesday 06 Feb 2008, Brad Bueche wrote: > http://path/createXML.php"; ... > Data provider for the chart looks like this" > dataProvider="{chartXML.lastResult.month[02].day}" > That would the feb component. There are 4 charts in here. I change > charts by changing state. Charts are changed by using a combo box and > a case statement. For each state I use activate to call > "chartXML.send()". My first thought was why the remote end sends back the month, so I guess you have all 12 months on screen at once ? If, as you say further down, it's an '02'/'2' thing, just change either the Flex or the remote end so it does what you want. -- Tom Chiverton Helping to seamlessly expedite user-centric functionalities on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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
RE: [flexcoders] Adding Event to Object that doesnt have one
I can have all 12 months on the screen at once, that will be my year view. Or I can do the month[number] thing to refence one month. I'm tyring to put as much data into a single xml file as I can, and the just hook the dataprovider up to sub sections of it. E4x's xpath like sytnax allows me to do this (very nice). Here is the code for moving through months. The component simply throws up an additional menu that lets the user choose from different chart types (using the same data set). I have to use the menu until I can figure out how to enable horizontal access labels to be clicked upon (allowing me to catch the event and the go to the charts for that month). After I get v 1 out the door I can probably make the component even more generic so that it will work for any time period from year down to hour. Yes, my first little Flexlet ;) http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:ns1="Components.*" > [] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, February 06, 2008 9:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adding Event to Object that doesnt have one On Wednesday 06 Feb 2008, Brad Bueche wrote: > http://path/createXML.php"; ... > Data provider for the chart looks like this" > dataProvider="{chartXML.lastResult.month[02].day}" > That would the feb component. There are 4 charts in here. I change > charts by changing state. Charts are changed by using a combo box and > a case statement. For each state I use activate to call > "chartXML.send()". My first thought was why the remote end sends back the month, so I guess you have all 12 months on screen at once ? If, as you say further down, it's an '02'/'2' thing, just change either the Flex or the remote end so it does what you want. -- Tom Chiverton Helping to seamlessly expedite user-centric functionalities on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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
RE: [flexcoders] Adding Event to Object that doesnt have one
Unless I am missing something (entirely possible) it looks like Darron is just pulling the y value for the event while clicking on a datapoint. I had already figured out how to do this (thanks to a post here). What I need to do is to be able to click on the actual labels in the horziontal access and generate an event that allows me too pull up a detail chart for that time period. I have some books that have info about adding events to something that doesnt have it. So I'll research that and let y'all know. [The newbie problems that I'm bound to run into!] brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche Sent: Wednesday, February 06, 2008 7:04 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Adding Event to Object that doesnt have one Looks like somebody has created what I need: http://www.darronsc <http://www.darronschall.com/weblog/archives/000267.cfm> hall.com/weblog/archives/000267.cfm It's a HorizontalDataSelector. Its part of the google flexlib project. I'll let y'all know how it works for me. Ok, now I think all my major hurdles are taken care of in my project. The the inability to put a variable name an e4x result as a dataprovider to a chart is going to cause me to have to create hard coded components (because I cant figure out how to put a **bindable** month name variable into the chart data provider). But that's not a show stopper.it just means more files to create and keep track of. brad -Original Message- From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com [mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com] On Behalf Of Tom Chiverton Sent: Tuesday, February 05, 2008 11:50 AM To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com Subject: Re: [flexcoders] Adding Event to Object that doesnt have one On Tuesday 05 Feb 2008, Brad Bueche wrote: > 2. How do I associate this event with a layout on the screen where > the object seemingly keeps no reference to position? Subclass CategoryAxis, implement IEventDispatcher (if the base class doesn't) and then add an event handler for the mouse click (etc) event. -- Tom Chiverton Helping to quickly deliver value-added information on: http://thefalken. <http://thefalken.livejournal.com> livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups. <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail- <http://www.mail-archive.com/flexcoders%40yahoogroups.com> archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Adding Event to Object that doesnt have one
On Wednesday 06 Feb 2008, Brad Bueche wrote: > http://path/createXML.php"; ... > Data provider for the chart looks like this" > dataProvider="{chartXML.lastResult.month[02].day}" > That would the feb component. There are 4 charts in here. I change > charts by changing state. Charts are changed by using a combo box and a > case statement. For each state I use activate to call "chartXML.send()". My first thought was why the remote end sends back the month, so I guess you have all 12 months on screen at once ? If, as you say further down, it's an '02'/'2' thing, just change either the Flex or the remote end so it does what you want. -- Tom Chiverton Helping to seamlessly expedite user-centric functionalities on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Adding Event to Object that doesnt have one
Ok, I have, thanks to this group made a LOT of progess here. This is my first flex project and I'm trying to get a cool charting site up while everybody is interested in a cool charting site. I think I have figured out the problem. But, just to give some background This is what my HTTPService call looks like: http://path/createXML.php"; resultFormat="e4x"> Program views month data for 6 groups, provides year views, with month drilldowns. A single MONTH component offers line, clustered, stacked, and 100% charts for the given month. Data provider for the chart looks like this" dataProvider="{chartXML.lastResult.month[02].day}" That would the feb component. There are 4 charts in here. I change charts by changing state. Charts are changed by using a combo box and a case statement. For each state I use activate to call "chartXML.send()". Although I'm not sure why I have to do that. I thought the flash client cached its data. (Yes, this is called programming by throwing mud at the wall and seeing what sticks). In the component I declare at the top: [Bindable] public var month_number:String = "02"; I use the component like this: And it turns out that I had everything right but I was putting "02" in the month. HOWEVER, this IS what is in the xml. The xml is like this: 02 However, "02" doesn't work. "2" works. Does XML ignore zero? brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, February 06, 2008 8:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adding Event to Object that doesnt have one On Wednesday 06 Feb 2008, Brad Bueche wrote: > The the inability to put a variable name an e4x result as a > dataprovider to a chart Can you be a bit clearer ? > (because I cant figure out how to put a **bindable** month name > variable into the chart data provider). The whole DP is bindable, no ? -- Tom Chiverton Helping to conveniently transition enterprise-class meta-services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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
Re: [flexcoders] Adding Event to Object that doesnt have one
On Wednesday 06 Feb 2008, Brad Bueche wrote: > The the inability to put a variable name an e4x result as a dataprovider > to a chart Can you be a bit clearer ? > (because I cant figure out how to put a **bindable** month name variable > into the chart data provider). The whole DP is bindable, no ? -- Tom Chiverton Helping to conveniently transition enterprise-class meta-services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Adding Event to Object that doesnt have one
Looks like somebody has created what I need: http://www.darronschall.com/weblog/archives/000267.cfm It's a HorizontalDataSelector. Its part of the google flexlib project. I'll let y'all know how it works for me. Ok, now I think all my major hurdles are taken care of in my project. The the inability to put a variable name an e4x result as a dataprovider to a chart is going to cause me to have to create hard coded components (because I cant figure out how to put a **bindable** month name variable into the chart data provider). But that's not a show stopper.it just means more files to create and keep track of. brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Tuesday, February 05, 2008 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Adding Event to Object that doesnt have one On Tuesday 05 Feb 2008, Brad Bueche wrote: > 2. How do I associate this event with a layout on the screen where > the object seemingly keeps no reference to position? Subclass CategoryAxis, implement IEventDispatcher (if the base class doesn't) and then add an event handler for the mouse click (etc) event. -- Tom Chiverton Helping to quickly deliver value-added information on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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
Re: [flexcoders] Adding Event to Object that doesnt have one
On Tuesday 05 Feb 2008, Brad Bueche wrote: > 2. How do I associate this event with a layout on the screen where the > object seemingly keeps no reference to position? Subclass CategoryAxis, implement IEventDispatcher (if the base class doesn't) and then add an event handler for the mouse click (etc) event. -- Tom Chiverton Helping to quickly deliver value-added information on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Adding Event to Object that doesnt have one
I'm new to flex so there may be an obvious way to do this that I am missing. In my charts, my users want to drill down from the month view to the days of month view by clicking on the month name (categoryAxis, categoryfield) for the horizontal axis. However, from what I can see CategoryAxis has no mouse events (or any other events) associated with it. So my question is specific but may have broad application. 1. How do I add events to an item that does not have any? 2. How do I associate this event with a layout on the screen where the object seemingly keeps no reference to position? The only thing I can think of is pursuing looking at the fully rendered chart, figuring out x and y coordinates of the items (from an eyes on view), and then making areas of the screen clickable (and able to generate events). This does not seem very generic though and seems heavily dependent up on eyes on the screen (which seems fraught with peril to me). Suggestions? Since I'm new to flex, it would really help me if the answer could be tied specifically to the categoryAxis issue thats stumping me. brad