I am opening a webPopUp on my app, but I need the user to be able to close it at any time (pretty standard functionality).
I have the button image (circle with an ‘X’ in the middle) and webPopUp showing on screen, but I want the button to overlap the webpopup at the top right of the screen. Is that possible? My code is as follows:
native.showWebPopup(10, 10, display.contentWidth-20, display.contentHeight-20, "http://api.twitter.com/oauth/authorize?oauth\_token=" .. twitter\_request\_token, {urlRequest = listener})
closeBtn = display.newImage('closeBtn.png')
closeBtn.x = display.contentWidth - (closeBtn.width/2)
closeBtn.y = 20
closeBtn:addEventListener('tap', closeWindow)
closeBtn:toFront()
The webPopUp and button both appear, but the closeBtn is behind it.
Thanks [import]uid: 61422 topic_id: 16217 reply_id: 316217[/import]