[Wsocket] Socket GUI 클래스


Created with colorer-take5 library. Type 'csharp'

    import WallSocket.SocketEvent.WSocketEvent;
    import WallSocket.SocketEvent.WSocketMRGEvent;
    import WallSocket.WSocket;
    import fl.controls.Button;
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.MouseEvent;
    [SWF(backgroundColor=0x00 , width = 1000 , height = 500)]
    public class testSocketW extends Sprite
        //gui 표시 버튼
        private var call:Button = new Button;
        //Wsocket instance
        private var ws:WSocket;
        public function testSocketW()
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            call.x =stage.stageWidth/2 - call.width/2 ; 
            call.y = stage.stageHeight/2 - call.height/2;
            call.label = "call GUI";
            call.addEventListener(MouseEvent.CLICK , GUI_Call);
            ws = WSocket.getWSocket(this);
            ws.reciveProxy().addEventListener(WSocketEvent.CONNECT , con);
            ws.reciveProxy().addEventListener(WSocketEvent.DISCONNECT , con);
            ws.reciveProxy().addEventListener(WSocketMRGEvent.MASSAGE , msg);
            //��플 메세지 송신
            stage.addEventListener(MouseEvent.CLICK , sendMsg);
        private function sendMsg(e:MouseEvent):void
            //메세지 송신
            ws.sendProxy("send msg");
        private function msg(e:WSocketMRGEvent):void
            //메세지 ��신 (이벤트 arg 활용)
            trace(" massage " , e.mrg);
        private function GUI_Call(e:MouseEvent):void
            //gui 표시 메서드
        private function con(e:WSocketEvent):void
            if(e.type == WSocketEvent.CONNECT) trace("connect");
            if(e.type == WSocketEvent.DISCONNECT) trace("disconnect");
AS3 2010. 12. 4. 02:44

댓글을 달아 주세요

  1. 이전 댓글 더보기
  2. BlogIcon barbour quilted jacket 2014.10.23 13:50  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  3. BlogIcon botanical slimming 2014.10.24 05:59  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  4. BlogIcon montblanc meisterstuck 2014.10.24 05:59  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  5. BlogIcon cheap jordan shoes 2014.10.30 01:43  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  6. BlogIcon {hogan outlet|hogan 2014.11.05 04:20  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  7. BlogIcon moncler rinuncia alla quotazione 2014.11.09 10:36  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  8. BlogIcon 眼镜批发 2014.11.12 00:50  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  9. BlogIcon Buy apple laptops from china 2014.11.12 03:17  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  10. BlogIcon Polo Ralph Lauren dk 2014.11.23 08:08  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  11. BlogIcon woolrich canada 2014.11.28 08:26  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  12. 匿名 2014.12.03 05:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  13. 匿名 2015.01.07 17:45  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  14. BlogIcon doudoune burberry pas cher 2015.03.27 21:10  수정/삭제  댓글쓰기

    겠그l'intért de l'empereur pour son trne, bien sr,Dans l'ancienne Chine, souvent avec le sang.| | pourquoi le Japon n'est pas contrlée, peut ouvrir? c'est ça. pourquoi le burberry echarpe vilain petit canard? mme si la médiocrité. j'ai acheté un.
    de vastes intensif de manière économique; la démocratie est proposé.le Vice short bur일료

  15. BlogIcon burberry homme enfant pas cher 2015.03.30 11:27  수정/삭제  댓글쓰기

    에을1970: après le Prince Sihanouk a été destitué.|

    | amorce: |

    | Sihanouk aime le cinéma, aime le cinéma, mais dans le film jouent également un rle.En 1966, en 1997, de Sihanoukville photographier 19 film, au Cambodge de l'histoire comme thème.Norodom Sihanouk en · histoire de tournage, un contenu est un coup de la뉴어

  16. 匿名 2015.03.31 08:50  수정/삭제  댓글쓰기

    전일Being competitive covers several factors. Naturally, product pricing is a major factor but that has more to do with conversion. A factor that many new shopping cart software merchants overlook is SEO. If you are not ranked for keywords with search traffic,Blacksmith Shop_60324., no one will ever find your store. If your store is in that situation, the online community would not even know if you ar어던

  17. 匿名 2015.03.31 23:24  수정/삭제  댓글쓰기

    그마,Christmas Shopping in Derry C


    Why Purchasing Auto Parts Online Is So Great


    In today's fast-paced ever changing world, many auto owners don't have the time to search for a hard-to-find accessory or part for their car. Don't despair,Don't Get Upside Down On Your, because the availability of auto parts online are greater than yo마일

  18. 匿名 2015.04.01 06:28  수정/삭제  댓글쓰기

    하니Lacoste boots and a beret big mesh, or even the entire pleated skirt,Art Company Shoes Are Designe, tights and wool biker boots. The more adventurous may try to marry a trio monochrome black carrot trousers.

    Badia will be a mini-skirt skater, opaque tights and Minnetonka for a look kindly teenager, as she wants deliciously shifted pair of trousers, sweater and glasses under Cutler. Olympia 니이

  19. 匿名 2015.04.03 13:49  수정/삭제  댓글쓰기


    How to Prevent Motorcycle Theft


    You just got your new bike. You have been riding to work everyday. One day when you were ready to go to work,To Co-sign or Not to Co-sign Loans for Family...Th, your bike was missing. Does this scenario sound familiar? Actually this is happening almost everyday in different parts of the world. Moto지고

  20. 匿名 2015.04.03 17:37  수정/삭제  댓글쓰기

    알없One, paved roads are not made for ATVs. It can get pretty difficult, even for a professional, to control their ATVs properly on paved roads. Two, there are cars, buses, motorcycles, scooters, and bicycles on the paved roads making collision highly plausible. Many of the fatalities we have seen in reports occur on paved roads, so, beware.

    Take some training on ATV riding

    This is espec일에

  21. 匿名 2015.04.04 02:54  수정/삭제  댓글쓰기

    들지Like the above, knitted hat and a jacket with a lining seam searsucker-like. We're not normally a heavy logo'd pieces, but the embroidered letters feels like a part of the winter-generic design.

    Few have left thoughts about the current collection. Moncler is not for everyone because not everyone can come from the look of nyloned painted in a bright color, but there are some interesting piec적할

Powerd by Tistory, designed by criuce