Requiring lua files in other folders

Hi guys,

since daily build 619 (http://blog.anscamobile.com/2011/10/daily-build-feature-lua-files-in-folders/), corona support requiring lua files in folders.

I just want to know how to require lua files on upper level of folder or in the other folders on the same level/hierarchy ?
Thank you very much [import]uid: 129706 topic_id: 23854 reply_id: 323854[/import]

It doesn’t matter where the file is located in your folders when requiring. Whenever you require files, everything starts at the project root.

[lua]require “sound”[/lua] - Requires the file -Root-/sound.lua
[lua]require “audio.sound”[/lua] - Requires the file -Root-/audio/sound.lua

Hopefully that helps you. [import]uid: 103624 topic_id: 23854 reply_id: 96103[/import]

Clear enough, thank you very much lKinx :slight_smile: [import]uid: 129706 topic_id: 23854 reply_id: 96104[/import]