it looks like you want to use data binding here. in your mxml you can do this:

<mx:Label id="lblListValue" text="{lstCanvasSize.selectedItem.label}"/>

and comment out this line in your AS:

    //lblListValue.text = strSize;

if you haven't already, definitely check out the sections in the Flex User Guide that talk about data binding for more background. the Flex explorer sample app is also very useful to understand the building blocks available to flex coders.

   </mgk>

David Terry wrote:

Hello Fellow Groupies,

 

I am having an issue with setting the text property of a label control dynamically –the alert box displays the correct value but for some reason the label does not.

 

What am I doing wrong?

 

Many thank,

David T.

 



Yahoo! Groups Links

Reply via email to