text alignment

I have been looking at other post for text alignment and also the API’s and nothing seems to work.
I have a timer that makes the text go from 0 to the hundreds. I am trying to align the text to the right side of the screen, but it keeps pushing over.

I tried

t:setReferencePoint(display.CenterRightReferencePoint)  

and also

t.align = "right"  

I am sure its most likely a simple solution but i cant find it!
Thanks! [import]uid: 24708 topic_id: 23460 reply_id: 323460[/import]

The ReferencePoint doesn’t actually affect the text alignment, it just tells the app what part of the entire text object the reference point is aligned to. For instance, if the ReferencePoint is set to TopLeft then the top left of the text object will be the x=0,y=0 point.
I think what you are trying to do just needs the x coordinate to be set to the right side of the screen minus the number of pixels of the text object. [import]uid: 132483 topic_id: 23460 reply_id: 94096[/import]