I'm adding a label to a UIComponent at a dynamic x location.  The text
for that label is also dynamic.

How can I make it so the x location is the right side of the label? 
Here is my code:

var endDate:Label = new Label();
endDate.graphics.lineStyle(1,0x000000);
endDate.text = data.EDText;
endDate.styleName = "columnEnd";
endDate.height=20;
endDate.width = 100;
endDate.x = ratio*data.ED;
endDate.y = 30;
myUIComp.addChild(endDate);

-Nate

Reply via email to