Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how 2 pause the scene during paused Quicktime?

Status
Not open for further replies.

nowall

IS-IT--Management
Dec 4, 2000
10
CH
Hi, i am a bit lost with a "Pause problem":

i have 2 Quicktime films in the same screen/scene. Ideally, if you let them play normally, one runs after the other (let's say filmA:frames 001-100, filmB:frames101-200, both on the same scenario).
both film starts automatically, they aren't initially on paused state.

Problem: there's a "Pause button" (graphically only one, but in term of scripts respectively one for 001-100, one for 101-200). I managed to pause the filmA, but not the scenario: even when the filmA is paused, the frames continue to run on, and the filmB automatically starts when they reach frame number 101.
What i want is to stop the scenario indefinitely on the paused film A, until the play button is pressed.
what kind of Lingo command can I use?

thx for your help;-)
 
I forgot to precise
• that i'm using Director 8
• that the pause button's script is "On mouse down me>sprite (X).movieRate=0
 
hello

add the following lines to your pause button's script:

on exitframe

if sprite(X).movieRate = 0 then
go the frame
else
nothing
end if

end exitframe

This should help

have fun

dambo
 
thx;-) but problem:
i set the following script to my PAUSE button, as you suggested:
"
on mouseEnter me
set the member of sprite the currentSpriteNum to member "vidbpause2"

end

on mouseLeave me
set the member of sprite the currentSpriteNum to member "vidbpause"

end

on mouseDown me
sprite (61).movieRate = 0
on exitframe
if sprite(X).movieRate = 0 then
  go the frame
else
  nothing
end if
end exitframe
end"

when i activate it, th edebogger sends me this error:
"variable used before assigned value
go? the frame"


So, what's the problem?
 
Hello nowall

You've mixed up the handlers!

Here's your code:
on mouseDown me
sprite (61).movieRate = 0 -- Next line should be end mouseDown
on exitframe
if sprite(X).movieRate = 0 then
go the frame
else
nothing
end if
end exitframe
end -- This end can be cleared

I think that's the whole problem

have fun

dambo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top