Perhaps instead of pointing out little parts of the process, it'd be more
helpful to point towards the completely accurate documentation:
Page 190 of the Using Director Shockwave Studio book: topic subtitle (for
those looking at the non-paper version):
Understanding the order of messages in a movie
when a movie starts:
preparemovie
beginsprite
prepareFrame
-playing of sounds, drawing sprites, porforming transitions and palette
effects-
startMovie
When Director plays a frame, events occur in this order:
beginSprite
stepFrame
prepareFrame
-playing of sounds, drawing sprites, porforming transitions and palette
effects-
enterFrame
-timedelays via tempo, idle events, keyboard n mouse-
exitFrame
endSprite
When a movie stops, events occur in this order:
endSprite
stopMovie
And then, if you flip a couple pages to 193: topic subtitle (for those
with the clumsy online version):
Determining when handlers receive a message
This will tell you what order the following scripts receive messages:
Movie Scripts
Attached Behaviors
Frame Scripts
Cast Member Scripts
You'll have to look at that documentation for the correct order.
roymeo
--here I thought standard operating procedure was to read the dictionary,
read the using book, and then read the dictionary again.--
At 01:03 PM 7/27/01 -0700, you wrote:
>FYI: frame 1 of the score is always drawn *before* the startMovie event
>occurs, therefore beginSprite handlers on sprites in frame 1 will execute
>before your startMovie handler does. This occurs by design and is
>therefore labeled as "expected and normal behavior". Move sprites into
>frame 2 or begin using a prepareMovie handler (be careful, in the prepare
>movie handler not all Lingo is possible).
>
>Hope that helps,
>Tom
>
> > -----Original Message-----
> > From: R. Bhakti Klein [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 27, 2001 12:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: <lingo-l> order of handlers execution
> >
> >
> > i wouldn't call it normal or reliable.
> >
> > but it does seem to be what usually happens.
> >
> > :-)
> >
> > --bhakti
> >
> > Slava Paperno wrote:
> > >
> > > In my tests, the beginSprite handler of the sprite in
> > channel 1 executes
> > > before the startMovie handler. Is this the normal, reliable order?
> > > Slava
> > >
> > > [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!]
> >
> > --
> > R. Bhakti Klein
> > Instructional Media Developer, Distributed Learning Workshop
> > http://www.dlworkshop.net/
> > ��
> > Baritone, Wicki6
> > http://www.wicki6.com
> > ���
> > "On Earth, you can only do little things;
> > but you can do them with a lot of Love."
> > -- Mother Theresa
> >
> > [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!]
> >
>
>[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!]
-----
Roy Crisman
Senior Macromedia Programmer
(716)724-4054
[EMAIL PROTECTED]
[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!]