[RESOLVED] How do draw a rectangle that would cover the all screen?

Thanks jstrahan! That’s cool to know. Unfortuately the rectangle needs a touch event so I do have to interact with it.

In any event thank so much guys. You have been a great help.

I am going to mark this post a solved.

Thanks.

Mo [import]uid: 100814 topic_id: 32752 reply_id: 130407[/import]

EDIT:

Just you know, It seems that with an iphone (low res) the rectangle does not fill up the all screen (it works great and all other ios (iphone4/5/ ipad1/2/3)

I was using “thedog” suggestion:

background = display.newRect(0,0,display.pixelWidth,display.pixelHeight)

I went back to Rob suggestion:

background = display.newRect(0,0,570,360)
and it works for all ios devices. Please note that true for simulator but I will assume the same thing for the real devices.

Thanks again for all you guys.

Mo [import]uid: 100814 topic_id: 32752 reply_id: 131426[/import]

EDIT:

Just you know, It seems that with an iphone (low res) the rectangle does not fill up the all screen (it works great and all other ios (iphone4/5/ ipad1/2/3)

I was using “thedog” suggestion:

background = display.newRect(0,0,display.pixelWidth,display.pixelHeight)

I went back to Rob suggestion:

background = display.newRect(0,0,570,360)
and it works for all ios devices. Please note that true for simulator but I will assume the same thing for the real devices.

Thanks again for all you guys.

Mo [import]uid: 100814 topic_id: 32752 reply_id: 131426[/import]