Hi,
as subject,
have tried event.target
event.source,
with no joy, prints ‘nil’,
[blockcode]
local function fileHandler ( event )
if ( “began” == event.phase ) then
print("event rob ", event.target)
elseif ( “ended” == event.phase ) then
– This event is called when the user stops editing a field: for example, when they touch a different field
elseif ( “submitted” == event.phase ) then
– This event occurs when the user presses the “return” key (if available) on the onscreen keyboard
– Hide keyboard
native.setKeyboardFocus( nil )
end
end
for i = 1, 15 do
tField[i] = native.newTextField( centre-135, ypostf, 270, 30, fieldHandler )
tField[i].font = native.newFont( native.systemFontBold, 18 )
tField[i].text = “”
–tField[i]:addEventListener( “userInput”, fieldHandler)
ypostf = ypostf+50
end
[/blockcode]
thanks,
Rob [import]uid: 2131 topic_id: 9077 reply_id: 309077[/import]