>However the scene finished too quickly in the score. So I used an exit
>frame event.
>
>Is that the 'correct' way of doing it?
Yes--put this in the script channel of the frame you want to hold on:
on exitFrame
go the frame
end
Don't put it in a sprite channel or a movie script--it won't do any good.
If you're unsure of which is the sprite channel, look in the Director help,
Using Director -> Director Basics -> About channels in the score.
>Also, lingo scripts in a handler execute from the top first statement
>downward to the last statement. Is this correct?
Yes--top down. There's a gotcha, though. Take this code:
global gSomething
global gMax
on exitFrame
if gSomething > gMax then
go the frame + 1
gSomething = 0
end if
end
In most languages, you would expect the line "gSomething = 0" to not
execute. In Lingo, however, a "go to" doesn't keep the rest of the code in
the handler from executing. Lotsa people been caught by that one.
Cordially,
Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]