basyura's blog

あしたになったらほんきだす。

子ウインドウを表示して名前を出すだけなのに糞めんどくさい

html + javascript じゃなくて AS なビジュアルエディタで書いたら楽なの?

    var options = new air.NativeWindowInitOptions(); 
    options.transparent = false; 
    options.systemChrome = air.NativeWindowSystemChrome.STANDARD; 
    var newWindow = new air.NativeWindow(options); 
    newWindow.title  = "reply";
    newWindow.width  = 300
    newWindow.height = 50; 
		newWindow.x = 0;
		newWindow.y = 0;

   	var text = new air.TextField();
    text.text = "reply from " + msg;
    text.width = 300;

    var format = new air.TextFormat();
    format.size = 30;     //フォントサイズ
    text.setTextFormat(format);
    newWindow.stage.addChild(text);
    newWindow.stage.scaleMode = air.StageScaleMode.NO_SCALE;
		newWindow.stage.align = air.StageAlign.TOP_LEFT

    //activate and show the new window 
    newWindow.activate();
    newWindow.alwaysInFront = true;