Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:35:52+00:00 2026-05-26T23:35:52+00:00

Im using the Corona SDK. Here is an example of my file directory… –

  • 0

Im using the Corona SDK.

Here is an example of my file directory…

- Project Folder
-- file.lua
-- Another Folder
--- another_file.lua 
-- main.lua

I just started using Corona 4 days ago, so let me know if i missed something in the explanation.

So now were in main.lua and im using newGroup() to display my content.

I want to call the new() function from file.lua so i write, localGroup:insert(file.new()). And this works great.

Now when i want to call the new() function from the another_file.lua, localGroup:insert(another_file.new()), i get an error.

It has something to do with the file being nested in another folder. How can I write this to make it work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:35:53+00:00Added an answer on May 26, 2026 at 11:35 pm

    sorry, but you must put all your .lua files in the root directory where the main.lua is located, else you’ll get errors. one of the drawbacks of corona is that you can only put images in subfolders, but other .lua files, movies, and sounds must be in the root directory. the reason your call to file.lua works (im assuming) is the fact that its in the root folder. try moving another_file.lua to the main and try making a call. it should work that way. ^^

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Corona SDK to make a simple app that requires luasocket. Corona SDK
Can I get the Iphone/Android GPS location using the Corona SDK? I want to
How to transfer parameters to the function in onComplete event (Lua + Corona SDK)
I have successfully installed: 1) IntelliJ IDEA 10.0.3 with Lua Plugin 2) Corona SDK
I am working on a game using Corona sdk. I need to determine a
I've been trying to write out a custom tick using the Corona SDK (using
I'm using corona sdk of anscamobile for developing my new mobile game. I was
I want to create an iPhone/iPad applications using Corona SDK. But they should be
Is is possible to upload a photo to facebook using Corona?
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.