> Date: Sat, 16 Dec 2000 14:19:55 -0000
> From: "Yo Gomi" <[EMAIL PROTECTED]>
> Subject: <lingo-l> MIAW
>
> Hello Lingo-Ls,
> I have a help MIAW which I want it to forget when closed with "close box".
> (that cross one on the corner) Does anyone know how to do that? I have a
> button to close and forget within a help window and that works fine. But
> closing with "close box" the movie is still running somewhere behind the
> main stage.
> I have this movie script.
> on openHelp
>   global help
>   set help to window "Help Window"
>   set help.rect to rect(100,100,420,340)
>   set help.filename to "help.dir"
>   set help.titleVisible to TRUE
>   help.visible = TRUE
>   moveToFront(help)
> end
>
> on closeWindow
>   global help
>   close(help)
>   forget(help)
> end
>
> Or alternatively does anyone know how to create a MIAW without the "close
> box" but can still interact with it. I tried "set the windowType.help to
2"
> to get a plain window but no interaction. Any suggestion greatly
> appreciated. Thanks in advance. Yo

Hi Yo,
Put this in the movieScipt of the movie your are using as the MIAW
--------
on stopMovie
  closeWindow
end stopMovie

on closeWindow
  tell the stage to set the windowList = []
end closeWindow
---
This will close all windows in the windowList - if you don't want that to
happen,  target the window you want to close only.
ie -- tell the stage to close window "MIAW_a"
in place of
tell the stage to set the windowList = []
--for the second question look in the Lingo Dictionary under windowType
ie -
 set the windowType of window "theMIAW" to 2
>From there you can do all kinds of cool stuff - as I am sure you know
already.
Have a good one, Steve
Vargas Media Interactive
www.vargasmedia.com
1.707.527.7980


[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