• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 736
  • Last Modified:

Minimizing and closing a full screen projector with custom flash buttons.

I am presenting my CD-ROM in full screen, I do not want to display the windows titlebar.  I have already in place, 2 flash buttons with no action script on them.  I need to make one button minimize the Director Projector and the other button to close the director projector with a prompt first asking the user YES or NO.  I dont think I have any Buddy API instances left to use.  I think I am already using the 2 free instances of Buddy API.
0
kishfy
Asked:
kishfy
  • 2
  • 2
1 Solution
 
kishfyAuthor Commented:
OK, I found the lingo needed to minimize and close the full screen application.  I do, however, still need either the javascript code or lingo code to bring up a box that says "Are you sure You Want To Quit" with Yes & No Buttons.  Sorry for the pre-mature posting of the above stuff.
0
 
kishfyAuthor Commented:
Here is my code for the quit button, if it helps:

on mouseEnter
  sprite(9).member = "closeover"
  cursor(280)
  updateStage
end

on mouseLeave
  sprite(9).member = "closeup"
  cursor(0)
  updateStage
end

on mouseDown
  sprite(9).member = "closedown"
  puppetSound (1,"Click")
  cursor(290)
  updateStage
end

on mouseUp
  sprite(9).member = "closeup"
  cursor (0)
  quit
  updateStage
end
0
 
LingoMasterCommented:
I would just use a a little dedicated director file for a Yes/No dialog MIAW.  Setting the modal of the MIAW would e appropriate.
The MIAW could directly quit if user selects Yes, or a stage movie script can forget the miaw if ser cancels quit.


On can also use the muiDialog xtra to put up a Yex/No dialog, there's a learning curve but you might find an adaptable script in this how to article.

http://www.updatestage.com/previous/970801.html#item3
0
 
LingoMasterCommented:
Here's a little MUI Dialog script tht presents a Yes / No dialog.  It returns 1 o 2.  

One shortcoming for a quit dialog, Yes is default.

on quitYeNo
  set myMuiObj = new (Xtra "Mui")
  if objectP ( myMuiObj ) then
   
    set alertInitList = [ #buttons : #YesNo,\
                          #title   : "Quit?", \
                          #message : "Quit this program now?",\
                          #icon    : #error,\
                          #movable : 1]
    return alert ( myMuiObj, alertInitList )
  else
    return 0
  end if
end


it's derrived from the examples movie at:

http://www.updatestage.com/downloads/dialogs.zip
0
 
MediaMacrosCommented:
You can also use BUDDY API.  One line of code for this... (www.mods.com.au or www.mediamacros.net/customer)

if baMsgBox("Are you sure you want to quit?", "Quit", "YesNo", "Question", 2) = "Yes" then halt
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now