Irv Kalb: > As for an object deleting itself from the actorList ... here's the > problem. When Director goes to a new frame, it basically goes > through it's equivalent of a repeat loop from 1 to the number of > items in the repeat loop, calling the stepFrame handler in each > object. If an object deletes itself from the actorList inside its > own stepFrame handler, it changes the actorList. When this happens, > Director can skip calling the next item in the actorList, and/or can > go off the end of the actorList. > > If you just reset the actorList at the end, that would work fine.
Hi Irv, Thanks for making clarifications. So, with your reply in my mind, I can see that the best way to remove childs (sorry Zav, but "children" doesn't sound good) from actorList is only through explicit statements, right? But then, I would definitely argue that it is not dynamic. It's hardcore typing. I'm not criticizing you post though, I'm just exploring the best way to deal with objects. Thanks pb [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!]
