>>However the scene finished too quickly in the score. So I used an
>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.


A sprite channel was where I placed my sound file.


>>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.
>
>
Thank you! This was the answer I wanted. I believe I have phrased the 
question wrongly. Sorry if I was misleading to some of you. However, I do 
appreciate Al's and Irv's replies. Thank you for pointing me to your 
excellent article, Irv.

I actually wanted to know of ways when the execution of scripts was not top 
down and under what circumstances was it desirable to have this sequence 
disrupted.

I believe this knowledge will help me write a so-called 'better' script.

May I know why?


Many thanks.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[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!]

Reply via email to