kraigyb
08-18-2004, 12:51 PM
I have created many applications which are coded identically with the exception of some graphics, button layout, etc. I like to keep each application up-to-date, so when I make changes in one application I copy the changes from each action and paste them into my other applications, and then republish them.
I recently played with the Application.LoadScript command which seems like it would work great. I can copy the updated scripts to the individual CD_Root\AutoPlay\Scripts folder and then republish each application. What I don't like about this is that when the application is published, the script files must be distributed in the AutoPlay\Scripts folder where everyone can read and enjoy. Is it possible for the scripts to be compiled right into the application?
I read in the online help about Application.LoadScript, dofile, and require commands. What are the differences between them? Do I need to have a separate .lua files for each Object/Action? Is there an easier way to share code between projects?
Is there an an external .lua script editor for APM5?
Thanks much!
Craig Booth
I recently played with the Application.LoadScript command which seems like it would work great. I can copy the updated scripts to the individual CD_Root\AutoPlay\Scripts folder and then republish each application. What I don't like about this is that when the application is published, the script files must be distributed in the AutoPlay\Scripts folder where everyone can read and enjoy. Is it possible for the scripts to be compiled right into the application?
I read in the online help about Application.LoadScript, dofile, and require commands. What are the differences between them? Do I need to have a separate .lua files for each Object/Action? Is there an easier way to share code between projects?
Is there an an external .lua script editor for APM5?
Thanks much!
Craig Booth