ࡱ> Root Entryp|YrRASH0  ContentsPage 1 Symbol 2j Root Entryp|YrRASHX Contents Page 1 _Symbol 2j !"#$%&Symbol 1l  !"#$%&'()*+,-CPicPage CPicLayer CPicFrameCPicText IoX@Arial(output?m Layer 1O trace(data); } }CPicPage CPicLayer CPicFrameCPicText @Arial(input?}v Layer 1OCPicPage CPicLayer CPicFrame " xqm: $ ; 3 j  *a   / NX " " - F; m:  e 6   o r  j x   P2" q b  r {?O1vcreateSocket (); function createSocket () { _root.createTextField("inputlabel",4,50,100,50,20); inputlabel.text = "Input:"; _root.createTextField("outputlabel",5,50,300,50,20); Outputlabel.text = "Output:"; _root.createTextField("inputer",3,100,100,200,20); _root.createTextField("outputer",2,100,300,200,20); outputer.type = "input"; outputer.border = true; inputer.border = true; serialServer = new XMLSocket (); trace ("made it" + serialServer); //127.0.0.1 is the same as "localhost" ie an alias to your local machine //it is concievable to that you would want to connect from another machine and you would change this serialServer.connect ("127.0.0.1", 9000); serialServer.onConnect = function (success) { trace ("connected " + success); serialServer.send ("HOWDY FROM FLASH" + new Date().toString()); }; serialServer.onClose = function () { trace ("closed"); }; serialServer.onData = function (data) { trace ("incoming" + data); inputer.text = inputer.text + data; }; outputer.onChanged = function () { serialServer.send (outputer.text); trace ("output" + outputer.text); outputer.text = ""; }; }  Layer 1O?^ Layer 2OO?M Layer 3OO`(`0xx3xfxx x(xPx) CDocumentPagePage 1Scene 1X>Y>Symbol 2input>inputSymbol 2>Symbol 1output>outputSymbol 1 >*@hhhhh  CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`fSymbol 1l  !"#$%&'()*Arial(input?}v Layer 1OCPicPage CPicLayer CPicFrame " xqm: $ ; 3 j  *a   / NX " " - F; m:  e 6   o r  j x   P2" q b  r {?O1createSocket (); function createSocket () { _root.createTextField("inputer",3,100,100,100,20); _root.createTextField("outputer",2,100,300,100,20); outputer.type = "input"; outputer.border = true; inputer.border = true; serialServer = new XMLSocket (); trace ("made it" + serialServer); //127.0.0.1 is the same as "localhost" ie an alias to your local machine //it is concievable to that you would want to connect from another machine and you would change this serialServer.connect ("127.0.0.1", 9000); serialServer.onConnect = function (success) { trace ("connected " + success); serialServer.send ("HOWDY FROM FLASH" + new Date().toString()); }; serialServer.onClose = function () { trace ("closed"); }; serialServer.onData = function (data) { trace ("incoming" + data); inputer.text = inputer.text + data; }; outputer.onChanged = function () { serialServer.send (outputer.text); trace ("output" + outputer.text); }; }  Layer 1O?^ Layer 2OO?M Layer 3OOxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx) CDocumentPagePage 1Scene 1X>Y>Symbol 2input>inputSymbol 2>Symbol 1output>outputSymbol 1 >*@hhhhh  CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]_h``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]_h