title: Play gif's in lua?
body: <p>How can i display <code>animated gif's</code> in lua?I searched a lot on the web but didn't found nothing.I'm using director and tried this code,</p>
  
  <pre><code>   local backgroundImage = display.newGifRect( "mainmenu.gif", 480, 320 )
     backgroundImage.x = 240; backgroundImage.y = 160
     menuGroup:insert( backgroundImage )
  </code></pre>
  
  <p>I thought it should be done as an image but it doesn't worked.Thanks in advance. </p>