My Student's Problem
Phil Davis
davis.phil at comcast.net
Fri Apr 21 02:21:01 EDT 2006
Hi Judy,
Alternate solution: To make sure I'm not creating unintended
consequences and with 'wait' statements, I tend to let messages tell my
commands when to fire if possible.
So your student could use something like this to move to card 2 after
the movie finishes:
on openStack
play videoclip "lab2intro.mov"
end openStack
on playStopped
go cd 2
end playStopped
This way he doesn't need to know how long the movie is.
Phil Davis
Judy Perry wrote:
> Well, here's what my student has to say about it, fixing it, with my
> comments below:
>
> ==================================================================
>
> "Today I found a problem with my lab 2 where the second card with
> animation would not show up after getting called from card 1. You
> said that you would post it to your forums or whatever to get help.
> I was able to debug the problem myself and here is the solution in
> case someone else runs into the same problem.
>
> The problem is with the play movie command. Once the move you are
> playing ends, the play command does not terminate correctly. To fix
> this you need to tell it to stop playing.
>
> play moviefile "amovie"
> pause length of movie
> play stop moviefile "amovie"
>
> Hope this helps."
>
> ================================================================
>
> Okay, so he gets an A+++ for solving it, but I do not see this "solution"
> in the docs for the "play" entry.
>
> WHAT???
>
> Any ideas? Retreating with egg on face...
>
> Judy
More information about the use-livecode
mailing list