ObjectToFront

Hello,
I know this is simple but I can’t seem to figure it out. I have text that I want to place over top of an image but I don’t know how to make it work. I saw the syntax but it doesn’t make sense.

Danny [import]uid: 59140 topic_id: 12050 reply_id: 312050[/import]

Try out:

object:toFront()

http://developer.anscamobile.com/reference/index/objecttofront [import]uid: 14218 topic_id: 12050 reply_id: 43941[/import]

Hey Spoggles
I should’ve been clearer. I have seen that link but I just don’t understand how to make it work
[import]uid: 59140 topic_id: 12050 reply_id: 43942[/import]

Whatever is created first will be on bottom.
Whatever is created last will be on top.

To reorganize layers you can use:
[lua]object:toFront();
object:toBack();[/lua]
Here the text is created first and is at the bottom. This is how to send to top.
[lua]local myText = display.newText(“Hello World!”, 0, 0, native.systemFont, 16);
local myImage = display.newImage( “image.png” );

myText:toFront();[/lua] [import]uid: 49978 topic_id: 12050 reply_id: 43943[/import]

Hey warper, Thanks!
I’ve seen that happen but never thought of it. Now I can see the text.
Thanks a bunch!! [import]uid: 59140 topic_id: 12050 reply_id: 43946[/import]