-- screenbutton.lua
dofile("gui.lua")
function creatview ()
local v = gui.newView {frame = {origin = {x = 0, y = 70}, size =
{width = 900, height = 500}}, backgroundColor = gui.whiteColor}
gui._BACKGROUND:add(v)
local b = gui.newButton {frame = {origin = {x = 10, y = 10}, size =
{width = 100, height = 40}}, title = "Exit", buttonType = 1 }
b.controlEventTouchUpInside = otherClose
b.titleColor = gui.redColor