How to insert movieclips in TabBar sample app?

What’s the best way to get a movieclip to play in the TabBar sample app?

I have 2 movieclips, each a series of 6 fullscreen images.
My goal is to have one movieclip being played when Tab2 is touched, and the other to play when tab3 is touched.

Do I initialize the animations within each screen’s lua file or do it in the main.lua?

I’m a total beginner, so any and all help is appreciated.

Thanks!
[import]uid: 19765 topic_id: 6184 reply_id: 306184[/import]

You would place it in one of the “screen” lua files. Make sure you also use:

g:insert(yourobjectnamehere)

Otherwise, it doesn’t get removed from the canvas and a residual impression of the image will appear in your other screens. [import]uid: 8045 topic_id: 6184 reply_id: 21317[/import]

Thanks for the reply–

Turns out I was also forgetting to import the external movieclip class. Works great now!

[import]uid: 19765 topic_id: 6184 reply_id: 21327[/import]