[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-06 Thread jer_ela
To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: Embedding String Variable in dataprovider name If you use the square brackets then you don't use the dot so it should be: dataProvider={chartXML2.lastResult[month].day} --- In [EMAIL

RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-06 Thread Tracy Spratt
: [flexcoders] Re: Embedding String Variable in dataprovider name For the immediate problem, add some code to the function that checks the first parameter for null, and returns a null value of the appropriate type in that case. But for a more robust application, you should stop using lastResult

RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-06 Thread Brad Bueche
PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, February 06, 2008 4:42 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider name Yes, binding to lastResult is, as you are seeing, hard to debug. Use a result handler. Tracy

RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-06 Thread Tracy Spratt
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche Sent: Wednesday, February 06, 2008 5:21 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider name So something like

RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-05 Thread Brad Bueche
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name you can use a method to get around that dataProvider={getDp(chartXML2.lastResult, month)} private function getDp(lastResult:Object, month:String):String { return lastResult[month].day; } The method will be called when ever

[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-04 Thread jer_ela
- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jer_ela Sent: Friday, February 01, 2008 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Embedding String Variable in dataprovider name If you use the square brackets then you don't use the dot so

[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread jer_ela
If you use the square brackets then you don't use the dot so it should be: dataProvider={chartXML2.lastResult[month].day} --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: I'm no e4xpert, but dataProvider={chartXML2.lastResult.[month].day} should do it. --

RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread Brad Bueche
:[EMAIL PROTECTED] On Behalf Of jer_ela Sent: Friday, February 01, 2008 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Embedding String Variable in dataprovider name If you use the square brackets then you don't use the dot so it should be: dataProvider={chartXML2.lastResult[month

RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread Tracy Spratt
, February 01, 2008 3:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider name That worked! I still get the following warning: Data binding will not be able to detect changes when using square bracket operator. For Array, please use