Re: Player Object problem

2002-11-10 Thread Ken Ray
The Player object is a little finicky because it is Quicktime that is
managing it (for the most part), not Rev. I have found that if you use
"send" to allow the current handler to finish, you get better results.
You've done this yourself with a button and a mouseUp handler, but you could
do the same thing this way:

  send "ResetTime" to this card in 10 milliseconds
  -- gives time for the "doThis" handler to complete

  on ResetTime
set the currentTime of player "player1" to the duration of player
"player1"
  end ResetTime

> BTW - The lista who recommended setting the UI to Mac (away from
> Appearance Manager) if running in Jaguar was quite correct. Rev 1.1.1
> has stopped crashing as long as I set this properly immediately upon
> launch.

You won't have to do this with Rev 2.0, BTW, so I suggest you upgrade as
soon as it's available. :-)

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/d

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Player Object problem

2002-11-10 Thread Barry Levine
I have a few Player Objects in my stack that contain QT movies. I have 
no problem triggering the playing of the movies at the appropriate 
times. However, I do have a problem getting the movies to maintain the 
display of their last frames or even to set them to the last frames via 
Transcript. This occurs when I leave the current card, move to another, 
and then return. The movie's currentTime resets to 0. Okay, I can 
understand that might happen so I'll add some code to my stack script. 
Here is my code:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	set the currentTime of player "player1" to the duration of player 
"player1"
end doThis

The problem is that the currentTime remains at 0 when I test this using 
the messageBox.

However, if I add a button (named "setMaxDuration") on the card with 
the code:

on mouseUp
	set the currentTime of player "player1" to the duration of player 
"player1
end mouseUp

...that works! So I have to change my stack code to:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	send mouseUp to button "setMaxDuration"
end doThis

Have I found a bug (or found one that has already been identified 
months ago)? The bootm line is that I'd like to have the card remain 
exactly as I left it when I return to it. It seems that the player 
objects do not have persistency. Am I not setting the various options 
correctly?

BTW - The lista who recommended setting the UI to Mac (away from 
Appearance Manager) if running in Jaguar was quite correct. Rev 1.1.1 
has stopped crashing as long as I set this properly immediately upon 
launch.

Thanks,
Barry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Player Object problem

2002-11-10 Thread Barry Levine
I have a few Player Objects in my stack that contain QT movies. I have 
no problem triggering the playing of the movies at the appropriate 
times. However, I do have a problem getting the movies to maintain the 
display of their last frames or even to set them to the last frames via 
Transcript. This occurs when I leave the current card, move to another, 
and then return. The movie's currentTime resets to 0. Okay, I can 
understand that might happen so I'll add some code to my stack script. 
Here is my code:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	set the currentTime of player "player1" to the duration of player 
"player1"
end doThis

The problem is that the currentTime remains at 0 when I test this using 
the messageBox.

However, if I add a button (named "setMaxDuration") on the card with 
the code:

on mouseUp
	set the currentTime of player "player1" to the duration of player 
"player1
end mouseUp

...that works! So I have to change my stack code to:

on doThis
	go next card
	-- (then do something there)
	go prev card
	-- (now we're back on the card where the movie is)
	send mouseUp to button "setMaxDuration"
end doThis

Have I found a bug (or found one that has already been identified 
months ago)? The bootm line is that I'd like to have the card remain 
exactly as I left it when I return to it. It seems that the player 
objects do not have persistency. Am I not setting the various options 
correctly?

BTW - The lista who recommended setting the UI to Mac (away from 
Appearance Manager) if running in Jaguar was quite correct. Rev 1.1.1 
has stopped crashing as long as I set this properly immediately upon 
launch.

Thanks,
Barry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution