At 23:40 +1100 03/14/2002, Perry wrote:
>I manage my MIAWs and a few other things by putting them in behavor
>properties. I'll show you a behavior I wrote a couple of years ago, rather
>than explain myself:
This is very close to the kind of things I'm doing too, and largely
for the same reasons. I'm well into a pretty chunky slice of Director
pie that is stacks o' MIAWs everyplace and still not a non-object in
sight. Though it does take a little longer to code, I can't even
begin to describe how much more stable this is than going with movie
scripts or even parents. If I ever end up revising my text for
Director 9 I am going to totally eliminate movie scripts from the
samples. Pure behaviors.
When opening and closing MIAWs via *parent* scripts you have to
generally clear out your props in reverse order to how you started
them, and make sure to close *and* forget the MIAW before setting its
identifier to 0.
Also make sure no other elements of your parent script are trying to
gain access to any variables or elements in the MIAW.
Really slapping everything into a "master control" sprite instance,
using code such as what Perry illustrated, makes a heck of a lot more
sense.
--
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!]