If this works:
<mx:Text text="{chartManagerService.lastResult.charts.paramBack2}"/>

and this is in the same mxml file:
[Bindable]
private var ChartID : String = chartManagerService.lastResult.charts.paramBack2;

then the assignment to ChartID will work once you put it in the right spot.

You need to make the assignment elsewhere, such as the handler for the
form's 'creationComplete' event.

http://www.adobe.com/devnet/flex/quickstart/handling_events/


On Mon, Feb 16, 2009 at 4:14 PM, Frank Griffin <[email protected]> wrote:
> Thanks, Kit and Atlanta Geek!
>
> This is one of the combinations I tried. When I use this, I don't even
> get my Form just a blank screen.
>
> FG
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Kit
> McCormick
> Sent: Monday, February 16, 2009 4:05 PM
> To: [email protected]
> Subject: Re: [AFFUG Discuss] Syntax for Private VAR
>
> Are you wanting the ChartID to hold the value of paramBack2 ?
>
> [Bindable]
> private var ChartID : String =
> chartManagerService.lastResult.charts.paramBack2;
>
>
> Kit
>
> On Mon, Feb 16, 2009 at 3:55 PM, Frank Griffin <[email protected]>
> wrote:
>> I am having problems with the syntax for a Private VAR
>>
>>
>>
>> This text field brings back the desired ChartID:
>>
>>
>>
>> <mx:Text text="{chartManagerService.lastResult.charts.paramBack2}"/>
>>
>>
>>
>> I have tried several variations of:
>>
>>
>>
>> [Bindable]
>>
>> private var ChartID : String =
>> "{chartManagerService.lastResult.charts.paramBack2}";
>>
>>
>>
>> But the only thing is brings back is the text of
>> "{chartManagerService.lastResult.charts.paramBack2}" not what it
> should
>> yield (i.e., 210090101).
>>
>>
>>
>>
>>
>> What would the proper syntax be?
>>
>>
>>
>>
>>
>> Thanks!
>>
>>
>>
>> Frank
>>
>>
>>
>> -------------------------------------------------------------
>> To unsubscribe from this list, simply email the list with unsubscribe
> in the
>> subject line
>>
>> For more info, see http://www.affug.com
>> Archive @ http://www.mail-archive.com/discussion%40affug.com/
>> List hosted by FusionLink
>> -------------------------------------------------------------
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in the 
> subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to