Hi
I can't say why your stack isn't working, but I have a couple of
questions about your script. (I haven't reprduced it in full here,
just snippets and not in order. Refer to previous mail for the full
script.)
> stop player "musicPlayer"
> --all the above works like charm!
>
>close stack "theater"
> set the directory to gRootDir
Does the "theater" stack close on the PC?
> repeat until the mouse is down
> set the filename of image "slideShow" to line x of gShow
> if x = the number of lines of gShow then
> exit repeat
> end if
> wait theRate ticks with messages
Is there any reason for the "with messages". Do you need other
handlers to run at this stage. I'm always a little wary of repeat
loops that wait for a mouse event. I've had situations where they
weren't properly dealt with, especially if there are mouse event
handlers in the script. For example, I wouldn't know what to expect
if the user clicked the mouse and there was a mouseDown handler
somewhere in the script. Would the mouseDown handler get called or
would the repeat loop stop or both? My inclination would be to use
"send <message> in theRate ticks" to control the changing of the
images. Then you could avoid the need for the repeat loop and the
"wait with messages".
> put "Innersearch CD/Media/" & tPixFolder into tShowDir
> set the directory to tShowDir
Is that a valid path on a PC? I guess it must be if your stack
displays the pictures, but I'm used to PC paths beginning with a
drive letter, e.g. J:/Media/etc
>If you can show me a better way than the above I would be happy to implement
>it, but it DOES work on a MAC. . .and the code looks pretty sound. . .
I think you said in an earlier mail that it doesn't always work on
the Mac. (Forgive me if I'm wrong.) You mentioned needing to select
the pointer tool to make an image appear (or disappear!). This
suggests that an error has occurred somewhere and the script hasn't
completed.
> put the files into gShow
It might be more useful if you could store the full paths in the list
instead of just the filenames. Then you could reset the directory
immediately, and probably be in a safer position if something goes
wrong while the slide show is playing. For example:
set the directory to tShowDir
put the files into tFiles
##filter files here perhaps to make sure you only use image files
filter tFiles with "*.jpg" (or whatever)
repeat for each line tFile in tFiles
put tShowDir & "/" & tFile & cr after gShow
end repeat
delete char -1 of gShow ##dangling return
set the directory to gRootDir
Sorry if this doesn't solve the problem, but perhaps something here might help.
Cheers
Dave Cragg (A Metacard mortal of Scotland)
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.