Is there a function to return the lua file?

Might seem like a weird question but what I wanted to do for debugging purposes is when I do this

[lua]

function Scene:destroyScene( event )

   

   print( “DESTROYING scAddStrings” )

end

[/lua]

Instead of having to hard code the name of the lua file, in this case ‘scAddStrings’ I was wondering if there was a call like…

print("DESTROYING " …   system.getLuaName() )

For example.

Ta

I suppose I could do this

print( "DESTROYING " … storyboard.getPrevious(storyboard.getCurrentSceneName() ))

having set the screen name when it’s created like this

local Scene      = storyboard.newScene(“scAddStrings”)

I suppose I could do this

print( "DESTROYING " … storyboard.getPrevious(storyboard.getCurrentSceneName() ))

having set the screen name when it’s created like this

local Scene      = storyboard.newScene(“scAddStrings”)