Getting Started With External Modules (Help)

I’m creating an app that has a lot of identical scenes except for a few small snippets. To make files smaller and edits much quicker, I decided I’d try using an external module to hold the code that is the same for every “scene.” I need some help, though, to make this less of a head ache…

  1.  If I use an external module, must the code in the external module be in a table? Is that the proper method?

  2.  I’m using storyBoard, and I want to put display objects (images and buttons) in the external module. How do I get the objects in the scene group of the original file?

  3.  Say, for example, I create a line in the external module. Is it possible to edit that object (width, height, etc) from the original file that requires the external module? If so, how is that done?

  4.  Each of the identical scenes I mentioned has some unique values. I want some text in the external module to say what the custom values are. So, how do I get a value from the original file to the external module that I required? I think this question is similar to my third question. 

Answer whatever question(s) you want, but to keep this neater, please state the number of the question you are discussing.

Thanks!

Nathan

Below please find the documentation for external modules. This is the best info on how to implement them:

http://www.coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

Here is the information regarding moving data within the Storyboard logic: 

http://www.coronalabs.com/blog/2012/08/07/managing-state-between-scenes/

See if this article helps at all: http://www.develephant.net/corona-modules-demystified/

Best.

Thanks for the replies!

Panc software:  I’ve never seen the blog from the second link, and, after checking it out, I think it will be very helpful. Thanks!

Develephant:  Thanks for the share! Hopefully I’ll have time to check that out later tonight.

Below please find the documentation for external modules. This is the best info on how to implement them:

http://www.coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

Here is the information regarding moving data within the Storyboard logic: 

http://www.coronalabs.com/blog/2012/08/07/managing-state-between-scenes/

See if this article helps at all: http://www.develephant.net/corona-modules-demystified/

Best.

Thanks for the replies!

Panc software:  I’ve never seen the blog from the second link, and, after checking it out, I think it will be very helpful. Thanks!

Develephant:  Thanks for the share! Hopefully I’ll have time to check that out later tonight.