attempt to perform arithmetic on a function value

Hi.

i have tried to compiled a few of my functions when i get an arithmetic error on a function value. i dunno what cause it, it happens when i create this function

local function goinfoMenu(numb) print('change scene') transition.to(buttonTable[numb], {time = 300, rotate = 360, onComplete = function() dir.changeScene('info') end}) end

following from this old post, I am basically asking for the same thing

http://forums.coronalabs.com/topic/39781-how-to-hunt-down-the-source-of-attempt-to-perform-arithmetic-error/

because the error throws unknown file

stack traceback: [C]: ? ?: in function \<?:466\> ?: in function \<?:218\>

It could be because you put rotate instead of rotation in your transition call.

Rotation not rotate :slight_smile:

why thank you for the correction. yes that is a typo, but it still show the same error

EDIT : yes, I think that is the problem. thanks for the notice :smiley:

It could be because you put rotate instead of rotation in your transition call.

Rotation not rotate :slight_smile:

why thank you for the correction. yes that is a typo, but it still show the same error

EDIT : yes, I think that is the problem. thanks for the notice :smiley: