;

PDA

Click to See Complete Forum and Search --> : flash 8 projectors


sousflai1
05-31-2006, 06:34 AM
I have created a projector .exe from flash 8 and cannot get any quit function to work? I've tried the fscommand but this seems to be redundant in the new release. Is there now an alternative and does anyone know howto use it to quit a projector?

many thanks
Steve

cancerinform
05-31-2006, 08:41 AM
What do you mean by "quit" function?

sousflai1
05-31-2006, 08:47 AM
I would like the player itself to close. I can unload the root easily enough, though I would like to close the entire window.

cheers
ste

cancerinform
05-31-2006, 08:51 AM
Make a button on the main timeline, name it closeBut and try this.
closeBut.onRelease = function()
{
removeMovieClip(this._parent);
}

da_hammer
05-31-2006, 08:53 AM
if you are using to close with a button the code on your should be
---------------------------------------
on(press){
fscommand("quit");
}
------------------------------------
or if you want to call from a particular frame, then your particular frame can have this code:
------------------------
fscommand("quit");
-----------------------
this is pretty simple and strightforward, flash8 doesn't have any such fscommand("quit") bugs!

hope it helps