Align Text Code Component not working

Try changing the code to:

text.alignText='left'

where the first “text” is the name of your text component.