A. I have a movie that works as a menu to open other movies. For example here is code in a mousedown handler over a list:
case (x) of
gmiaw = "RooferManual_Hazards_in_Roofing_Waterproofing"
lframe = 8
-- go to frame 8 of movie "RooferManual_Hazards_in_Roofing_Waterproofing"
gmiaw = "RooferManual_Your_Role_in_Safety"
lframe = 6
-- go to frame 6 of movie "RooferManual_Your_Role_in_Safety"
go to frame lframe of movie gMiaw -- I know this is not a MIAW. I use the term for simplicity.
B. When it opens the new movie, it closes the menu movie. When the new movie is done, the new movie is re-opened. This has worked perfectly for about 8 years.
C. Recently, the client has asked for the ability to have a MIAW open up along side each new movie that can contain "instructor" notes. This I have been able to do, using a movie called "notes."
When an arrow at bottom of a screen in a movie is clicked, the "notes" movie opens in a "sidebar." The movie contains two fields, one for the location of the note (moviename + frame number in the movie. These fields are saved into a notes folder as .txt files, and when present are loaded into the "notes" movie when it opens, or, when added by a user, are saved in that file. PHEW!
This actually works pretty good -- when I run any individual movie, not using the menu to access the movie (either as projector or in author mode in MX 2004).
Unfortunately, When the movie is called from the menu using the code in A., those movies where I have inserted the MIAW notes option, return an error that says, for example,
"Unable to open file <the movie path> <the movie name> because it is already open with permission by another user."
This does not happen in movies where I have yet to install the notes option.
I have followed the problem to the end of the "menu" movie, using break points and puts for the windowlist and I see no other window open (I get a  for the result) nor the writing of any global value which would indicate another movie is open. Below is part of my stopMovie code to try to make sure I have no other windows open.
lWindows= the windowlist
q = lWindows.count
if the windowlist <> then
repeat with i = 1 to q
I also have tried break points at the prepare movie and start movie handlers in the beginning of the new movie being opened, but it never reaches it.
Finally, here is code used on the arrow button within the new movie to create the "notes" MIAW. This code is used in a mousedown handler. At this point in time, I am doing nothing in the beginsprite handler for the behavior attached to the arrow to create the MIAW. So I can't see what effect it might be having at all. Beyond that, I HAVE NO IDEA WHAT IS GOING ON AND DON'T KNOW WHAT TO DO NEXT!
x= the moviename
olditemdelimiter = the itemdelimiter
the itemdelimiter = "."
y = x.item
gTheNotesLocation = the moviepath & Y & "Notes"
gTheNotesName = "S" & gFrame --gFrame is the current frame in the movie
NotesName = y && "S" & gFrame
window("notes").movie.member("moviename").text = NotesName
the itemdelimiter = olditemdelimiter
Result = baFolderExists( gtheNotesLocation )
put result ........., etc. rest is just preparing folder and location..........
Can anyone tell me what is going wrong or give me a pathway for finding out?