At 09:29 -0500 02/22/2002, Carol Mahaffy wrote:

>i sent out a previous post about memory leaks on a cd i was creating. Well
>it seems that after much tracking that when you tart playing a quicktime
>then jump to a different section before that is done playing it doesn't
>release the memory.

Hmm, that's interesting, all right. I hadn't heard that one before, 
but not much would surprise me either. ;)

>So my question is this, i know i can detect going
>somewhere else with in th cd but is there anything to (for lack of a better
>word) shut off the qt? or make it inactive?

   on endSprite me
     sprite(me.spriteNum).member.movieRate = 0
   end

Slap that onto your QT sprites. When the play head leaves the frame 
forever, the file stops. There are variants you can use; for instance 
you can set the movieRate when the user clicks a navigation button 
instead of waiting for endSprite events.

There's a pretty good list of QT-related commands in the Lingo by 
Feature section at the front of the 8/8.5 Lingo docs; perhaps some of 
the stuff there is worth trying. (For instance perhaps instead you 
could cause the play to jump to the last frame of the QT file, then 
move to another section.)

But you know 4 percent per launch is infinitesimal, compared to the 
300+ Mb that Windows itself leaks every time you boot. ;)

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
          http://www.osborne.com/indexes/beginners_guides.shtml
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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