how to move standard .lua program to work with slideview

Hello,

I have a simple program that I wrote that is a single page with a pop up keypad.

I want to write a couple of different little programs and merge them into one program where the user can slide back and forth between them.

So my thought was to use slideview and have a separate .lua file for each screen/program.

I think I am not understanding what it takes to convert a standalone program into something that is a module or sub .lua code.
When I attempted to import my code my text boxes and buttons are in the right location but on all of the screens. I think this has to do with the code wanting to put them on top and the screens slide below them.
Also some of the screens are shrunk or not using the full page… not sure why.

Is there any pointers for how best to make a .lua file work smoothly as a module?

Thanks,

Mike <>< [import]uid: 10845 topic_id: 12586 reply_id: 312586[/import]

It sounds like director would be want you want to use. (It’s free and awesome.)

http://Techority.com has a tutorial called “How to change scenes/screens” that might be useful for you with this :slight_smile:
[import]uid: 52491 topic_id: 12586 reply_id: 46076[/import]

Hey that is just peachy… :slight_smile:

I downloaded the director code and started playing. It looks like a fancy version of the slide-view I was playing with.

I looked at your tutorial and discovered your emphasis on localGroup.

It sort of clicked with me and I realized that my I was putting a lot of my objects at the top level which where going outside of the local lua code.

I used this idea and rebuilt my code.

It now behaves nicely as a separate screen inside of director or slide-view.

woo hoo

Even more interesting is the latest mailing came out from ansca talking about the importance of local variables. He that sounds very very familiar. :slight_smile:

I now can build my code so it will play nicely as a module.

thanks for the help.
I appreciate it.

Mike <>< [import]uid: 10845 topic_id: 12586 reply_id: 46568[/import]

No worries at all, I’m really happy I was able to help you :slight_smile:

Good luck with your project!

Peach [import]uid: 52491 topic_id: 12586 reply_id: 46611[/import]