Jim,

Try this:

-- script of btn
global gFileNum

on mouseUp
  set the defaultFolder to thePath
  put the files into fileList
  put 1 into gFileNum
  PlayMovie
end mouseUp

-- script of cd
global gFileNum

on PlayMovie
  set the filename of player "player1" to ("/" & line gFileNum of fileList)
  start player "player1"
end PlayMovie

on playStopped
  add 1 to gFileNum
  if gFileNum > 4 then
    exit to top
  else
    PlayMovie
  end if
end playStopped

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


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 28, 2002 12:43 PM
Subject: Hanging on Wait


> The following hangs on "wait" and I'm not sure why:
>
>   set the defaultfolder to thePath
>   put the files into fileList
>   repeat with h = 1 to 4
>     set the filename of player "player1" to (defaultfolder & "/" & line h
of
> fileList)
>     start player "player1"
>     wait until the movie is "done"
>   end repeat
>
> It plays the first movie but then "hangs" ( or waits forever).
Suggestions
> appreciated, thanks.
>
> Jim
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

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

Reply via email to