flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zavr <zavr.w...@gmail.com>
Subject MXML Selectors
Date Sat, 21 Mar 2015 17:16:10 GMT
Hey, I just thought it would be really cool if I could use mxml selectors,
<s:VGroup id="rootGroup">
  <s:HGroup verticalAlign="middle">
    <s:Label text="Width:"/>
    <s:TextInput width="50" />
    <s:Label text="Height:"/>
    <s:TextInput width="50" />
    <s:Button label="Update" click="updateBtn_clickHandler(event)" />
  <s:Button label="Save as..."/>

and then do something like rootGroup.find(".Hgroup > .Label") which returns
/all/ instances of type Label, or rootGroup.find(".Button['label'=Update]")
like attribute selector, etc. 
You get the idea!

View this message in context: http://apache-flex-development.2333347.n4.nabble.com/MXML-Selectors-tp45684.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message