It might get assigned to null at startup and then to something else
later as the binding expression becomes valid

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cathal
Sent: Saturday, July 26, 2008 3:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing parameter to component

 

Hi,

I'm trying to pass the selected item on a combo box in one component
to another component.

If i bind it to a label it works fine,

code: 
<mx:Label text="{headerComp.cbProject.selectedItem.projectname}" />

but passing it into another component it doesn't work.

code:

<comp:home
strProjectName="{headerComp.cbProject.selectedItem.projectname}" />

While in debugging mode strProjectName seems to be null, so it doesn't
see to be assigned anything.

Any suggestions?

 

Reply via email to