Can't get the MovieClip Sample Apps working!

I try to run the Sample Apps to help me understand the different Corona features but I can’t get the MovieClip running and I’m getting this exception:

03/02/2011 00:04:10 [0x0-0xf11f11].com.anscamobile.Corona_Simulator[24389] Runtime error
03/02/2011 00:04:10 [0x0-0xf11f11].com.anscamobile.Corona_Simulator[24389] /Users/boss/Documents/xdev/corona/Movieclip/main.lua:71: attempt to call field ‘newAnim’ (a nil value)

Would somebody have an idea why?
Thanks

See the MovieClip Sample Apps here: http://developer.anscamobile.com/content/movieclip
[import]uid: 23471 topic_id: 5906 reply_id: 305906[/import]

Same problem as Denis above. I can’t seem to get the samples to work. I’m getting the same error:

attempt to index global ‘movieclip’ (a nil value)

In my own code, I experience the same error:

  
 imageTable = {}  
  
 for i = 1,9 do  
 table.insert( imageTable, "animation\_000" .. i .. ".png" )  
 end  
  
 MyAnim = movieclip.MyAnim( imageTable )  
  
 MyAnim.x = 100; -- position the instance at 100x  
 MyAnim.y = 100; -- position the instance at 100y  
  
 MyAnim.play(); -- play the animation   
  

Gives me an attempt to index global ‘movieclip’ (a nil value)
error [import]uid: 40285 topic_id: 5906 reply_id: 30414[/import]

Make sure that you have required movieclip

local movieclip = require("movieclip")

And

The file movieclip.lua is in the same directory as your code

You can copy this file from

/Applications/Corona.268/SampleCode/Graphics/Movieclip/movieclip.lua

Obviously changing the Corona.268 if you are using a different version [import]uid: 8366 topic_id: 5906 reply_id: 30535[/import]

I’ve got the same issue but there’s a strange way on how I managed to solve it. I did add the

local movieclip = require(“movieclip”)

line at the top. “movieclip.lua” was in the same directory as well and I created table of animation images exactly like in the movieclip example and got the:

attempt to index global ‘movieclip’ (a nil value)

This is how I solved it. I copied and pasted the MovieClip main.lua file into the directory of the app I was working on and then deleted all of the lines of code for the ui buttons… basically I deleted everything except the ‘require’ line and the call to the newAnim method and replaced the cube.png with the graphics I was using and it worked. I even compared it to the code I manually typed before, that didn’t worked, to see where I slipped if… If I misspelled something but there were no differences. I have no idea why it doesn’t work when I manually typed it and why it does when I copy and paste but it does and that’s how I’ve been working with it. [import]uid: 6035 topic_id: 5906 reply_id: 69847[/import]