Hi everyone, this is my first post here so I hope you can excuse any mistakes I make. I am currently using the “widget” module for scrolling and buttons, but I cannot get a button press to return anything but “press”. I am also using the “director” module. Here is a snip of the code I am using:
new = function ( params )
local widget = require "widget"
local scrollView = widget.newScrollView {
width = 320,
height = 480,
scrollWidth = 320,
scrollHeight = 1000
}
local contactUsTouch = function( event )
print( event.phase )
end
local contactUs = widget.newButton {
label = "Contact Us",
top = 0,
left = 0,
emboss = "true",
defaultColor = { 255, 0, 0 },
overColor = { 0, 255, 0 },
width = \_w \* .90, height = 50,
cornerRadius = 8,
onEvent = contactUsTouch
}
displayButtons:insert( contactUs )
scrollView:insert( contactUs )
displayMain:insert( displayButtons )
displayMain:insert( scrollView )
return displayMain
end
I think that should about get the point across. When I was using the “ui” 1.5 library, it would return the different event phases. Thoughts?
Sean [import]uid: 157382 topic_id: 29719 reply_id: 329719[/import]