
WSocket.swc
Created with colorer-take5 library. Type 'csharp' package { 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; addChild(call); 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 표시 메서드 ws.showGUI(); } private function con(e:WSocketEvent):void { if(e.type == WSocketEvent.CONNECT) trace("connect"); if(e.type == WSocketEvent.DISCONNECT) trace("disconnect"); } } }
'AS3' 카테고리의 다른 글
[Localconnection] AIR - SWF 주의사항 (125) | 2010.12.04 |
---|---|
[as3 byteArray]오브젝트 변환과 복제 와 전송 (114) | 2010.12.04 |
[Wsocket] Socket GUI 클래스 (135) | 2010.12.04 |
[FlashVar]as3 에서 HTML parameter 받기 (82) | 2010.12.04 |
[drawTriangles] 가장?쉬운 삼각형 응용 예제 (37) | 2010.12.04 |
[bitmapData Capture] stage capture 시 유의점 (78) | 2010.12.04 |
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
이용약관위배로 관리자 삭제된 댓글입니다.
겠그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일료
에을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뉴어
전일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어던
그마,Christmas Shopping in Derry C
火车采集器html简单模板示范
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마일
하니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 니이
단수火车采集器html简单模板示范
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지고
알없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일에
들지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적할