On 01/02/2005, at 9:07 AM, Jon Alongi wrote:

Once my MIAW has loaded, and calculations are performed, the result needs to
be returned via an OK button.



Hi,

Do you want to created the miaw and return a result to the originating handler? - ie effectively 'pause' the first handler, generate a dialog and then continue with the original handler? Something like this-

-- pseudo code

on mouseUp
  aResult = ShowDialogAndGetResult()
  doSomethingwithResult(aresult)
end

I don't think you can do this with MIAWs (although you can with some dialogs created by Xtras). Normally you do this with MIAWs:

-- pseudo code
on mouseUp
  ShowDialogAndGetResult()
  -- exit this handler and wait for a result
end

on HandleDialogResult(aResult, sendingWindow)
 -- sent from the MIAW
 sendingWindow.forget()
 doSomethingwithResult(aresult)
end

Note that you can pause a handler and wait for a result if you use BuddyAPI or MUI (or any other Xtra) to generate a Yes/No dialog. If you can 'perform the calculations' in the main movie then you can write code like

-- pseudo code
on mouseUp
  performCalculation()
  aResult = ShowDialogAndGetResult()
  doSomethingwithResult(aresult)
end

Luke


-- ***************************************************************** Mecca Medialight Pty Ltd

Mecca Medialight:
111 Moor Street
Fitzroy, Vic. 3065
Tel +613 9416 2033
Fax +613 9416 2055

Mecca Medialight Sound Studio:
1 Bakehouse Lane
http://www.meccamedialight.com.au/

*****************************************************************
This email and any files transmitted with it may contain information which is privileged, confidential and protected from disclosure. If you have received this email in error please notify [EMAIL PROTECTED] and do not use, disclose, copy, distribute or retain any of it without our authority.
*****************************************************************



[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