Setting x & y for newText()

Hi all,
Why does the Hello World example set the x & y to 0 when creating newText() and immediately change them after creating?

Like so:

– Set myX and myY to what the demo set x and y after creating myText
local myX, myY = (display.contentWidth / 2), (display.contentWidth / 4)
print("myX and myY “…myX…” "…myY);

local myText = display.newText( “Hello, Andrew!”, myX, myY, native.systemFont, 40 )

– I’m trying to understand why setting x & y in the newText() method is different from setting them after creating myText
–myText.x = display.contentWidth / 2
–myText.y = display.contentWidth / 4

When I use the code above the text is running off the screen. If I set myX & myY to 0 and then un-comment the last to lines everything works.

[import]uid: 12090 topic_id: 9009 reply_id: 309009[/import]

It looks like that the reference point for the text is different when you set it from within the function than what it is when you manually set the x/y values. [import]uid: 52430 topic_id: 9009 reply_id: 32912[/import]