Maaximize, Close, Window done! but what about a minimize button?

I have on my projector window a close, maximize and window button, like in the windows environment. Is there a minimize action that could be added to the equation, if so what would this be?

Trev

Hey there trevorsaint,
i was just wondering if you could enlighten me as to the maximize and window buttons,
that would be greatly appreciated,
thanks,
Ben(flashy22)

Hi Ben. Ok I will help you out, as I managed this after reading part of the flash bible, wait a few and I will send you some code to look at. But meanwhile aquaint yourself with fscommands :). If it is indeed a projector you intend to produce.

Trev

Ok Ben. Here are a few tips.

To quit your projector, i.e a close button.

use the following

on (release) {
fscommand(“quit”);
}

On the click of the button the projector will indeed quit.

For the maximize button i suggest using the following:

on (release) {
resize(“true”);
}

This indeed will resize your projector to full screen.

and common sense tells us that if we say use false in place of true, this will do the opposite, which it actually does.

So

on (release) {
resize(“false”);
}

Puts the projector window back into window mode.

Better still you can on close, perform a secondary check rather like the windows operating system where the user has the choice to accept shut down or cancel.

You would achieve this using a function, but firstly you would have to create a seperate movie clip for that window and link the two. I will not go into this, with any luck what I have told you will help, if not post again :).

Regards

Trev.

ps - in the end I was unsuccessful with getting a connection between asp, xml and flash in a projector I had to do it in a browser window, but it would have been totally ace if I was successful in making a fully dynamic application, if it was even possible that is, I had envisaged placing it in localhost or something but still no joy, oh well sent to the client already.

Thanks trevor,
lol, i already knew the quit, but thanks anyway, and thanks alot for the resizing,
thanks again,
(if i were to do it in a browser, could i get the browser to minimize with some AS? i’d be doing it in I.E., if so please help,
thanks,
BeN (flashy22)