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:

<mx:HTTPService id="chartXML" url="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:

<ns1:LOBs_By_Month_2007 categoryFieldString="day_name"
categoryAxisTitleString="February"
        month_number="2">

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:

<month_name>02</month_name>

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




Reply via email to