|
Revision 11536, 0.8 kB
(checked in by stellaqua, 5 years ago)
|
|
/lang/actionscript/Grairl: Initial Import
|
| Line | |
|---|
| 1 | //// Grairlメインクラス
|
|---|
| 2 | package {
|
|---|
| 3 | /// インポート
|
|---|
| 4 | import flash.display.*;
|
|---|
| 5 | import flash.events.*;
|
|---|
| 6 |
|
|---|
| 7 | public class Grairl extends Sprite {
|
|---|
| 8 | /// プロパティ定義
|
|---|
| 9 | private var wq:WindowQueue = WindowQueue.getInstance(this);
|
|---|
| 10 | private var TargetControler:Object;
|
|---|
| 11 |
|
|---|
| 12 | /// コンストラクタ
|
|---|
| 13 | public function Grairl():void {
|
|---|
| 14 | stage.align = StageAlign.TOP_LEFT;
|
|---|
| 15 | stage.scaleMode = StageScaleMode.NO_SCALE;
|
|---|
| 16 | stage.nativeWindow.alwaysInFront = true;
|
|---|
| 17 | stage.nativeWindow.maximize();
|
|---|
| 18 | //this.TargetControler = new SocketControler();
|
|---|
| 19 | this.TargetControler = new WebresourceControler(0);
|
|---|
| 20 | this.TargetControler.addEventListener('DataReceive',Notificate);
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | /// メソッド定義
|
|---|
| 24 | private function Notificate(evt:Event):void {
|
|---|
| 25 | this.wq.QueuePush('','info',this.TargetControler.Message,0);
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
| 28 | }
|
|---|