Posted
Filed under Action Script
function closeBtn(e:Event):void {
    var request:URLRequest = new URLRequest("javascript:window.close()");
    navigateToURL(request);

    trace("close");
}
----------------------------------------------------------------------------
function closeBtn(e:Event):void {
    import flash.external.ExternalInterface;
    ExternalInterface.call("window.close","");
}

----------------------------------------------------------------------------
exit_btn.addEventListener(MouseEvent.CLICK,clickButton);

function clickButton(myevent:MouseEvent):void{
   var myurl:String="javascript:self.close()";
    var mywindow:String="self";
   ExternalInterface.call("closewindow",myurl,mywindow);
}

<script language="javascript">
function closewindow (){
self.close();
}
</script>
---------------------------------------------------------------------------------

2010/04/07 20:01 2010/04/07 20:01