Hanging on Wait

Ken Ray kray at sonsothunder.com
Sat Dec 28 14:11:01 EST 2002


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: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/


----- Original Message -----
From: <JamesHBeckmann at aol.com>
To: <use-revolution at lists.runrev.com>
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
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list