Hanging on Wait

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


Try this:

-- script of btn
global gFileNum

on mouseUp
  set the defaultFolder to thePath
  put the files into fileList
  put 1 into gFileNum
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
  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
> fileList)
>     start player "player1"
>     wait until the movie is "done"
>   end repeat
> It plays the first movie but then "hangs" ( or waits forever).
> 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