[F8] Exiting a .swf

I want to be able to exit a .swf without using the x in the top right hand corner or without using any number of keystrokes… it is my understanding that flash 8 also has support for java script, but is that in the specialised java application sheet or can it use java in the standard flash application as well?

i know in Visual Basic code there is a code that will let you exit the application, and that is what i want for this as well…