on stopMovie problem in projector

I’m developing a little Director application with DMX04 on Win XP. So
far the additional xtras used are OSControl, BudFile, budapi and MUI
Dialog. They are all included in the xtras list and xtras are not
excluded (and they are all registered where applicable). The published
movie has a title bar with close box.

For when the user exits via the close box in the title bar, I have the
following “on stopMovie” in a movie script.

on stopMovie

If (NOT DialogL.dialogSvd) AND (DialogL.targetSrc <> #unk) then

reply = ShowAlert(1)

if reply then

SaveDialog()

end if

end if

end stopMovie

I did not clutter this post up with the other handlers because all works
well when run in authoring mode. Basically, if the user clicks the close
box in the title bar and has done anything, I ask them if they want to
save their work (in the form of a property list with baWriteList). The
“ShowAlert(1)” is a common mui alert handler in the same movie script
that asks the question. The “SaveDialog()” is a common file save handler
in the same movie script that first uses the mui fileSave to get a file
name to save the work to, then writes the (Director list) file with
baWriteList.

This all works as expected when I run the movie in authoring mode. I
stop the movie (with the control panel) and it asks me if I want to save
my work, then puts the mui file save dialog up, then successfully writes
the file to disk.

If, however, I create a projector and run it, then it does not work as
expected. When I click on the close box in the title bar it asks me if I
want to save my work, but when I click the yes button there is a flash
where it may have been putting up the mui save dialog and the movie
exits. It does not stop at the mui file save dialog for me to select a
save location and it does not write a file. In the publish settings the
xtras are included, animate in background is not checked (tried both
ways), center stage, single instance and full script errors are checked.
Nothing is checked on the file tab.

Just to make sure the OSControl xtra was not interfering, I set up a
small test movie with the movie script and a loop on an empty frame one.
The test behaved exactly the same as the full movie. I also tried a
simple alert between the “Do you want to save your work” mui alert
dialog and the file save dialog. It just flashed through that also.

Does anyone have any idea why this is happening in the projector version?

Been a long but a good day otherwise.

Hope you all are having a good day

Thank you,

Lee C


[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