Ramouz,

For your exit button in Flash 8, you can use the ExternalInterface class:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/ html/wwhelp.htm?context=LiveDocs_Parts&file=00002200.html

So your exit button code might look like:

on(release){
   jsClose();
}


And on frame 1 of your Actions layer, import the class and define the function:

import flash.external.ExternalInterface;

function jsClose(){
        ExternalInterface.call("closeWindow");
}


Then, between the head tags of the page which loads your SWF, add the javascript function "closeWindow()" such that it will close the window:

<SCRIPT LANGUAGE="JavaScript">
<!--

function closeWindow() {
  window.close();
}

// -->
</SCRIPT>



Hope that helps!


- Corey Bissaillon


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to