Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data binding with curly brackets (mxml)

Status
Not open for further replies.

133tcamel

Programmer
Sep 22, 2002
137
IN
Hi,
Can someone help me out with this example:

Suppose I want to write this code in Flex

Code:
<mx:Button id="b1" includeInLayout="{b1.visible}">

No what I want to do INSTEAD is instead of "b1" i want to refer to the component inline, like the "this" keyword. So my new (compact) code would be

Code:
<mx:Button includeInLayout="{this.visible}">

Ideally "this" should have referred to button but by design it refers to the mx:application. Is there another keyword like "self" or something to provide a shortcut to creating the id and then using it?

Just curious.

Thanks in advance for any help.

Regards,
San

---
cheers!
san
smoking3vc.gif


print length "The answer to life, universe & everything!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top