閉じてみろ
昔のFlashPlayerで、こんな感じにウィンドウがなかなか閉じないことがあったんですけど環境の問題かな?
/**
* Copyright TmskSt ( http://wonderfl.net/user/TmskSt )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/1ESG
*/
package {
import flash.display.DisplayObjectContainer;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
public class Main extends Sprite {
private static const WINDOW:String = "iVBORw0KGgoAAAANSUhEUgAAANcAAACLCAIAAAB9U5tuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACDdSURBVHhe7V0JfJXVlc++ko3sC1tYwpJACAhqUWOldauDdqg/bWcKVqodO/4KHVsZf3XU1mHs1FasrcVaLdhOK3Q6BUkEBAW0yiL7EsKehayQ5D2yJ++9zP/lhMvlftt9C8l7L9/n/eH37nfuueee87/n3O37EvzYY48FmZepgSHSwH333Yeag4HCl156aYhkMKsd1hpYvnw5oTBkWKvBbLxvaMBEoW/YYbhKsbf/MlHomv1HXrlQjL9X5QIC17gPV2p1FC5btmzVqlWqOrnrrru2bdumfHTu3Dk8klQjiJkJcYO65IvrUAps8VOeraTkzVcuoscvoSDfLh6pJiJ1NKyCQlgOBdavXy9pGPfI5syZwyz6ne98xz0mylKM7bp165544glvsWV8tPwfDzLWLv7G65IEEkMVFL722mv33nvv/fffz/s8uCsomvd2lEOejGkEBMiBK6UccCAalmOoO8aWFSGe+hUp2ebm5vKZAlve2UNIqkuQlvwo1c5YMWAhkzlCgUBwgfRU6TUNVTF8CFRQuGbNmvnz53/5y19++eWXSRGwxzPPPAM9vv766xhL8jnIxCNyn3j01FNPIefEiROwKDLBgcxGNubVCmLCFo9sFIEPpiIQg0pNmTKFclARcUBZSMJoVK1FIjH5BbZPPvkk4wYh0etUpWUVMVbMFzJUCTGaKFmr2c3wgZQbLRVRCJ+xYsUKMIIvgfkJOh988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swGDUY+Cl9MrFTuMGhQzLA4qVsguUw/DFAn1FKPRSbAXkTM/52+VmlJJ2gcPhkwUYP6qn/JQGCr1fxBrtiaWUoiyL/b5nARxQvUsp72mcPuSnlEssSZnaBXY7wwKMBL33kMi4PjT+B7nQT5omoijyvt+yAOacHtfA1ONpT3qFytEqlg0Q4wKZMe8swGzQowkMsNwFM7GnpyUsDyhOkpXI8+xju2EBplK9S0Melwybu+/HmhuK7QJZtn57fYkUq9sbsX64f356jBTXV5eibduLaA+Y/wOdNpSpUuzLRQAAAABJRU5ErkJggg==";
private static const BUTTON_HOVER:String = "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAPCAIAAADbBV4wAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE8SURBVEhL1VZLboNADOVKqHfKLSq1TQTDcJFuqy4qVarY9KMUEEkQaU7BGWrXkWV5AOHuZvQW9pvnzwMWJOM43kR7qqpK0jR9eXqMFA93t2jg7fU5Uuy292jg870yIREHClVKrYCc7CnFc5r1y2TZDg187z9MgMGkp0Cl8opj1vCgkDHtQOI8z9BAXX+ZIJ8iFKqUWgG50HP5dv0yzv0ZaNu9CTB+Ui/5OQ0Uqq/INFqJncvRQNfVJsAGUs+p5JWG9SE/p1yzUlE4NHA4tCbASNCrB0kM95HxP8iV+1wNnE6dCbAc68kGpYqXPeUVKSerTGuA2PsC30DfH02A2aCnJSigcg4WYqWXJaYdSHw1MAy9CTBV6jkNeTIZNufPzzQ3FHvv8Q2cz0OkKMsSDVwuP5ECDcDf6Cba0zTNLwffRuBJVlIaAAAAAElFTkSuQmCC";
private var W:DisplayObjectContainer, Bt:DisplayObjectContainer, BtH:DisplayObjectContainer;
private var s:Shape = new Shape;
public function Main():void {
s.graphics.beginFill(0, .4);
s.graphics.drawRect(0, 0, 465, 465);
W = ByteArrayUtil.load(WINDOW);
Bt = ByteArrayUtil.load(BUTTON);
BtH = ByteArrayUtil.load(BUTTON_HOVER);
W.x = 125, W.y = 163;
Bt.x = BtH.x = W.x + 144, Bt.y = BtH.y = W.y + 113;
this.addChild(s);
this.addChild(W);
this.addChild(Bt);
this.addChild(BtH);
BtH.alpha = 0;
BtH.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
stage.addEventListener(MouseEvent.MOUSE_UP, moouseUp);
}
private function moouseUp(e:MouseEvent):void {
if (BtH.visible) {
BtH.alpha = 0;
}
}
private function mouseDown(e:MouseEvent):void {
if (Math.random() > .7) {
BtH.alpha = 1;
}
}
}
}
import flash.display.DisplayObjectContainer;
import flash.display.Loader;
import flash.utils.ByteArray;
import mx.utils.Base64Decoder;
class ByteArrayUtil {
static public function load(data:String):DisplayObjectContainer {
var byteArray:ByteArray;
var base64Decoder:Base64Decoder;
var loader:Loader;
base64Decoder = new Base64Decoder();
base64Decoder.decode(data);
try {
byteArray = base64Decoder.toByteArray();
byteArray.position = 0;
} catch (e:Error) {
return null;
}
loader = new Loader();
loader.loadBytes(byteArray);
return loader;
}
}