Because of request I have the Quit button give you a choice to either Quit or Return to Main Menu. It looks like this:
Do you want to quit or return to main menu?
Quit Main Menu
Quit button works fine---Main Menu button does too BUT
The mainmenu window remains open when you get back to the Menu screen and of course the Menu screen has its own options of what to do.
Is there a way to close it without causing any problems?
Relevant script--MM is the new Main Menu button
yes is the Quit button--I just changed the text to say Quit instead of Yes---didn't change the name of the button
#include "scripts\base.inc"
#include "scripts\keys.inc"
this.xResult = false;
////////////////////////////////////////////////////////////////////////////////
on "close"
{
}
////////////////////////////////////////////////////////////////////////////////
on "yes"
{
this.xResult = true;
}
on "MM"
{
}
Am I messing with fireworks by changing a system object's code?
Any help is appreciated.