> Now that my movie has grown and slowed down, some of my sprites send
> messages to other sprites in the frame before the receiving
> sprite is fully
> initialized. So I see an error message saying that handler so
> and so is not
> found, or property such and such does not exist. If I send
> the same message
> a split second later, all is well.
>
> What's the solution? How do I make sure all sprites in the
> frame are ready
> to receive calls to their methods and to have their
> properties manipulated?

Slava,

sounds like sprites in lower channel #'s are trying to do stuff to
sprites in a higher channel # before they are initialized. maybe
spread the sprites over 2 (or more) frames & have a frame script in
the 2nd frame that starts up all the things you want to do. that way
_all_ the sprites are properly inited first.

another possibility is to have the sprites all register themselves in
a list as they come alive & then only send stuff to members of this
list.

just some ideas to point you on your way this 4th of July...

<grin>

Al Hospers
CamberSoft, Inc.
al<at>cambersoft<dot>com
http://www.cambersoft.com

A famous linguist once said:
"There is no language wherein a double
positive can form a negative."

YEAH, RIGHT



[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