> end up making my own window list and managing that, I'm so disgusted with
> the way Director lets you "manage" MIAWs.

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:


-- Behavior script "MIAW Manager"

property pIdentity, pWindow

on beginSprite me
  pIdentity = sprite(me.spriteNum).member.name.word[2]

  -- get the name of the script containing relevant miaw details
  theScript = "D_Window_" & pIdentity

  -- mGetWindow returns a prop list
  theList = mGetWindow(script theScript)

  pWindow = window(theList.theName)
  pWindow.rect = theList.theRect
  pWindow.titleVisible = theList.theTitleVisible
  pWindow.fileName = theList.theFileName

  open pWindow
end beginSprite

on endSprite me
  tell pWindow to saveMovie
  forget pWindow
end endSprite

-----------

Dunno if this helps, but thought I'd share it. The script here was used
originally in a hefty project in which not one global was used.

Pez

[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!]

Reply via email to