actionscript 3 - Flex: Properties of an item are not accessible in action script -


this question talks verticalalign property answer might relevant other style properties well.

i have grid object in mxml file:

<mx:grid width = "100%"          height = "100%"          id = "mygrid">     <mx:gridrow width = "100%">         <mx:griditem verticalalign = "middle">           // design code         </mx:griditem>     </mx:gridrow> </mx:grid> 

i'm trying add rows programmatically using action script:

var configurationitem:griditem = new griditem(); 

but there no verticalalign property grid item instance. there way set property in action script?

the verticalalign style , not property.

to achive actionscript use:

var configurationitem:griditem = new griditem(); configurationitem.setstyle("verticalalign", "middle"); 

hope helps.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -