What is the use of CoronaLua.dispatchEvent nresults parameters?

Hi,

I would like to get return from CoronaLua.dispatchEvent with no luck.

I am using the code as below.

CoronaLua.newEvent(L, “getCoin”);

CoronaLua.dispatchEvent(L, fListener, 1);

double coin = L.toNumber(1);

The variable coin has the value of 0. I have checked that the function in Lua has been called and I have return a number there but the Java code can’t get the return. Am I using it wrongly?

Thanks.