>You better go with Kerry's last suggestion to boost the frame rate instead.

Or, since frame rate is unreliable, use a timeout object. This is a quick 
hack, but here goes:

In the next to last frame:

on exitFrame
   -- 3000/255 = 12, so fire the timeout object every 12 milliseconds
   timeOut("fader").new(12, #fadeQT, 4)
end

In the last frame:

on exitFrame
   if sprite(4).volume > 1 then
     go the frame
   else
     halt
   end if
end

In a movie script:

on fadeQT whichSprite
   if sprite(whichSprite).volume > 0 then
     sprite(whichSprite).volume = sprite(whichSprite).volume - 1
   else
     timeOut("fader").forget()
     timeOut("fader").target = VOID
   end if
end



Cordially,

Kerry Thompson


[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