At 03:41 PM 12/14/00, Christopher Mealey wrote:
>Hi All
>
>on mouseUp--1st frame nav button
>
>   sound playFile 1,"Macintosh HD:Desktop
>Folder:paintshadoz:wtzardhead:ozsound:imoz.aif"
>    play frame 5
>end
>
>on enterFrame--animation frame
>
>   puppetSprite n, true
>   repeat with n = 2 to 4
>     set the ink of sprite n to random(8)
>   end repeat
>   set the stageColor to random(23)
>   updateStage
>   play the frame
>end
>
>on exitFrame
>   if soundBusy(1) then
>     play the frame
>   else
>     go next
>   end if
>end

Leif already provided the answers, but I thought I'd throw a couple of 
cents into the pot.

Get rid of all the 'play' commands and replace them with 'go' commands 
instead. play is intended to keep a place for the 'play done' command to 
return to. You may experience strange problems in movies that have a lot of 
unresolved play/play done commands. See the Lingo Dictionary for more details.

I expect you would get an error in your enterFrame script - unless you move 
the puppetSprite line into the repeat loop:

repeat with n = 2 to 4
   puppetSprite n, true
   set the ink of sprite n to random(8)
end repeat

You can completely remove the 'play the frame' (or 'go the frame') from 
your enterFrame event since you have a 'go the frame' in the exitFrame 
event when soundBusy(1).


--
Mark A. Boyd
Keep-On-Learnin' :)


[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