kishfy
asked on
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.
ASKER
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
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
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
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
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER