This content has been marked as final. Show 6 replies
Check the docs for window.moveToFront() and try it first. If your
desired window still doesn't have focus you could try Buddy API's
It will not work with neither of these methods. When the second MIAW is activated the first stops receiving any mouse actions (the user can't use any of its buttons). However, i can see that it is activated and it comes in the front of the first window. Any ideas what i am doing wrong?
This is the code that i am using to open my first window:
mymovie = window().new("Control_Panel")
mymovie.fileName = "Control Panel"
mymovie.open() -- Opens the window
-- remember the number of times clicked
myClickCount = 0
-- build list of scripts
sText = member("scripts").text
myScriptList = 
repeat with j = 1 to sText.line.count
-- grab the next script (or the last, depending)
myClickCount = min(myClickCount + 1, count(myScriptList))
if myClickCount <= 0 then
-- do nothing
if myClickCount > 0 then
textstr = the moviepath & myScriptList[myClickCount]
textst = myScriptList[myClickCount]
put textst into member "test"
sprite(2).Hypertext ="\Load [file= ["&textstr&"]]"
sprite(2).Hypertext = "\PlayScript [file= ["&textstr&"]]"
-- If a location script is playing wait a few seconds and then activate the dialogue window
if textst = "Navigation_Scripts\3.txt" then
tell mymovie to go next
set sounda = "Ritsos.ogg"
dialogue = window().new("D_XML_Test (Greek2)")
dialogue.filename = "path to file"
t = timeout().new("mOpenWindow", 5000, #mOpenWindow, dialogue)
The next handler is called when the user clicks on the next button. The problem is that when the dialogue window opens the Control panel window can not receive any input. Any ideas on how to solve this?
Please help!!!! no matter what i do when the dialogue window opens the Control_panel window freezes (refuses to accept mouse down events). I have no idea what to do to fix this
> Please help!!!! no matter what i do when the dialogue window opens the Control_panel window freezes (refuses to accept mouse down events). I have no idea what to do to fix this
What window.type are these MIAWs set to? The symptom you describe
/could/ be caused by #dialog-type windows - if so, try changing them to
#document or #tool
Many thanks Sean!!! Your help is really valuable!!