one listener for multiple textfields - finding which field triggered listener

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]

HI Rob,

Did you ever solve this problem, I am stuck trying to do the same thing.

Richard [import]uid: 7830 topic_id: 9077 reply_id: 34812[/import]

Bit of a late reply, but no, I just used the long way of individual listeners [import]uid: 2131 topic_id: 9077 reply_id: 54778[/import]