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
Post a Comment