Martha Arifin wrote

> I have tried the method of calling a handler on stage to close & forget MIAW
> instead of having the MIAW to close & forget itself. Still, the sound stops
> :(
> 
> Martha Arifin wrote


Hi again, 
I thought I'd double check - you need to get the MIAW to get the stage to
forget the MIAW, but the handler in the MIAW cannot call the handler in the
stage directly. In other words, the handler in the MIAW that initiated the
request to close & forget the MIAW must finish completely before you
actually forget the MIAW.

I've used a Parent script object that monitors what MIAWs it should forget
on stepFrame, but with Director 8, you could use the spiffy new timeout
object to do the forgetting - for example

on requestMIAWForget -- sent by MIAW
  timeOut("ForgetMIAW").new(1, #forgetMIAWHandler)
end

on forgetMIAWHandler -- called by the timeout object
                     -- after the MIAW handler has finished
  gMIAW.forget()
  -- then forget the timeout object
  timeOut("ForgetMIAW").forget()
end


Luke


--
Mecca Medialight Pty Ltd

Mecca Medialight:                       Medialight Sound Studio:
111 Moor Street                         1 Bakehouse Lane
Fitzroy, Vic. 3065                      North Fitzroy, Vic. 3068
Tel +613 9416 2033                      Tel +613 9416 2033
Fax +613 9416 2055                      Fax +613 9416 2055

www.medialight.com.au
__________________________________________________________________________





[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