function order

Is there a way to re-order functions in the main.lua file?
I have tried pre-declaring them, but can't get it to work.

so if I have this function, I want the function it calls, i.e. funcB to be perhaps later in the file, not necessarily before funcA. Hope this is clear.

local function funcA()
local z = funcB()
end

-- i want to put funcB here

This article about forward referencing written by Jon Beebe of Beebe Games fame might help.
http://jonbeebe.net/post/3789692325/forward-referencing-will-save-you

thanks!
that's exactly what I was looking for. Had tried a few variations but none had worked

views:1522 update:2011/9/30 9:15:39
corona forums © 2003-2011