to quote myself: Sun, 31 Mar 2002 16:37:04 -0800 To: [EMAIL PROTECTED] From: Buzz Kettles <[EMAIL PROTECTED]> Subject: Re: <lingo-l> Re: on beginSprite used in frame scripts Status:
Here's the frame/sprite event order: (I placed a single-frame script in the frame channel & placed the same script as a behavior on a single-width sprite in channel 1) note: sprite -5 refers to the frame channel -- (sprite -5) "beginSprite" -- (sprite 1) "beginSprite" -- (sprite 1) "prepareFrame" -- (sprite -5) "prepareFrame" -- (sprite 1) "enterFrame" -- (sprite -5) "enterFrame" -->> &the movie idles occur in here -- (sprite 1) "exitFrame" -- (sprite -5) "exitFrame" -- (sprite -5) "endSprite" -- (sprite 1) "endSprite" Conclusions: 1. In a sprite's first frame, beginSprite occurs before prepareFrame which is before enterFrame. 2. In a sprite's last frame, exitFrame occurs before endSprite. 3a. sprite events occur last on the sprite channels 3b. frame events occur last on the frame channel I believe you found out some of this below. hth -Buzz At 9:52 AM -0500 4/8/02, you wrote: >At 10:46 -0800 04/06/2002, Buzz Kettles wrote: > >>The script channel runs it's prepareFrame last > >WHAT...? > >Oh you have GOT to be kidding me! > ><runs tests> > >...Dang, you're not. It's very, very good that I know this now, >because had I discovered it just a week from now I would be rending >my garment. > >So why is this not VERY CLEARLY DOCUMENTED somewhere? It's >absolutely CRITICAL, if behaviors are supposed to be preferable to >member scripts or whatever, that we KNOW IN WHICH ORDER those >behaviors execute on any given frame. > >-- > > Warren Ockrassa | http://www.nightwares.com/ > Director help | Free files | Sample chapters | Freelance | Consulting > Author | Director 8.5 Shockwave Studio: A Beginner's Guide > Published by Osborne/McGraw-Hill > http://www.osborne.com/indexes/beginners_guides.shtml >[To remove yourself from this list, or to change to digest mode, go >to http://www.penworks.com/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!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
