03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Method summary<br />

Modifiers Signature Description<br />

Methods inherited from class Object<br />

close (XMLSocket.close method)<br />

public close() : Void<br />

Closes the connection that the XMLSocket object specifies.<br />

Example<br />

The following simple example creates an XMLSocket object, attempts to connect to the<br />

server, <strong>and</strong> then closes the connection.<br />

var socket:XMLSocket = new XMLSocket();<br />

socket.connect(null, 2000);<br />

socket.close();<br />

See also<br />

connect (XMLSocket.connect method)<br />

connect (XMLSocket.connect method)<br />

public connect(url:String, port:Number) : Boolean<br />

716 ActionScript classes<br />

close() : Void Closes the connection that the XMLSocket object<br />

specifies.<br />

connect(url:String,<br />

port:Number) :<br />

Boolean<br />

send(data:Object) :<br />

Void<br />

Establishes a connection to the specified Internet<br />

host by using the specified TCP port <strong>and</strong> returns<br />

true or false, depending on whether a<br />

connection is successfully initiated.<br />

Converts the XML object or data specified in the<br />

object parameter to a string <strong>and</strong> transmits it to the<br />

server, followed by a zero (0) byte.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!