Hi guys,

I wanted to share this with everyone, 'cuz it can really be a life saver for
those who want to use animated gifs in Director!! Thanks to the HandyMan!
We found out that there is a way to rewind, start, and pause an animated
GIF.  It's just a sprite command in lingo, so you could say:

property pSprRef
property pPlaying

on beginSprite me
  pSprRef = sprite(me.spriteNum)
  pPlaying = false
  me.updateGIF()
end

on mouseUp me
  pPlaying = not pPlaying
  me.updateGIF()
end

on updateGIF me
  if pPlaying then
    pSprRef.resume()
  else
    pSprRef.pause()
  end if
end

The only downside is that you have to write your own controls to keep track
of what frame they're on, but at least you have the start and the stopping
under control.

Looks like we both learned something new today,

-Will




Michael Nadel
[EMAIL PROTECTED]
Mediart - Multimedia as an Art Form










[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to