HI,
Trying to add a variable to a text field eventlistener.
Figured out that I need to use an anonymous event.
defaultField:addEventListener( “userInput”, function() testFlagsListener(myWord); end )
Problem is in the testFlagsListener I need to access the event and the passed parameter.
function testFlagsListener( event, inText )
When I try this, it seems the whole event gets ignored.
Essentially I’m trying to have user enter some text, and compare it with text I define. I don’t want to use global variables unless I have to.
Thoughts?