At 10:54 -0500 02/22/2002, Colin Holgate wrote:
>>>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
>
>
>If I might be so bold as to take a different guess about this (than
>Warren or Douglas), I suspect you mean how can you make QuickTime
>inactive enough that it gives back the memory that it stole?
That's what I was thinking too.
>Here's a test I just did:
>
>on exitFrame
> go the frame
>end
>
>on mouseup
> if the optiondown then
> go frame 11 - the frame
> exit
> end if
> if the shiftdown then
> set the movierate of sprite 1 to 1 - the movierate of sprite 1
> else
> set the movietime of sprite 1 to random(4900)
> end if
>end
What you did not do, though, with the optionDown, was this:
if the optiondown then
sprite(1).movieRate = 0
go frame 11 - the frame
exit
end if
You see? I mean, you didn't actually park the QT playback before
skipping to another frame. As I don't have a high rate QT file, I
can't really test this -- but what happens to memory when the QT file
is explicitly parked before you leave the frame?
Also, you mentioned freeBytes. Now a test that shows 25 Mb being used
is one thing -- but freeBytes all by itself, being used to determine
if you're losing a few extra K of space, is unreliable, since the
freeBytes test itself uses memory, as does placing freeBytes results
in the message window, which means that using "put the freeBytes"
alone will reduce your free bytes.
I know you know that, Colin, but not everyone necessarily does. To
*really* find out how much memory you might or might not be using
(and losing!) you actually need to look at values a couple orders of
magnitude greater (as you did) -- in the megabyte range.
Put another way don't obsess on a few hundred K more or less in
freeBytes. That kind of memory usage is darn close to meaningless,
background noise generated by Director itself as it operates, and
will rise and fall at intervals.
--
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!]