Why won't this Alert work?

Hello, can’t get this to work. Any ideas?

[code]
–ALERT FUNCTION
local function onAlert( event )
if ( event.action == “clicked” ) then
local i = event.index
if i == 2 then
print(“MENU”)
cancelAllTimers()
director:changeScene(“menu”)

elseif i == 1 then
print(“RETRY”)
cancelAllTimers()
director:changeScene(“menu”)

end
end
end[/code] [import]uid: 68047 topic_id: 12114 reply_id: 312114[/import]

nevermind, fixed. [import]uid: 68047 topic_id: 12114 reply_id: 44093[/import]