﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="book" content="ActionScript&nbsp;3.0&nbsp;Language&nbsp;and&nbsp;Components&nbsp;Reference"><link rel="stylesheet" href="../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../override.css" type="text/css"><meta name="keywords" content="NetConnection,flash.net.NetConnection,AMF0,AMF3,APPEND,BINARY,CONNECT_TO_FMS,DEFAULT,DELETE,DIRECT_CONNECTIONS,FLUSHED,GET,HEAD,OPTIONS,PENDING,POST,PUT,RESET,SRTT,STOP,SWAP,SWITCH,TEXT,VARIABLES,audioBufferByteLength,audioBufferLength,audioByteCount,audioBytesPerSecond,audioLossRate,authenticate,authenticate,bufferLength,bufferTime,byteCount,bytesAvailable,bytesAvailable,bytesLoaded,bytesLoaded,bytesTotal,bytesTotal,cacheResponse,cacheResponse,checkPolicyFile,client,client,client,client,connected,connected,connected,connected,connectedProxyType,contentType,creationDate,creator,currentBytesPerSecond,currentFPS,data,dataBufferByteLength,dataBufferLength,dataByteCount,dataBytesPerSecond,dataFormat,data,data,data,defaultObjectEncoding,defaultObjectEncoding,description,digest,domain,droppedFrames,dynamicPropertyWriter,endian,endian,extension,extension,farID,farID,farNonce,farNonce,fileList,followRedirects,followRedirects,fps,info,len,liveDelay,macType,manageCookies,manageCookies,maxBytesPerSecond,maxPauseBufferTime,maxPeerConnections,method,modificationDate,name,name,nearID,nearNonce,nearNonce,objectEncoding,objectEncoding,objectEncoding,objectEncoding,objectEncoding,oldStreamName,peerStreams,playbackBytesPerSecond,protocol,proxyType,requestHeaders,size,size,soundTransform,start,streamName,time,timeout,timeout,transition,type,unconnectedPeerStreams,uri,url,useCache,useCache,userAgent,userAgent,usingTLS,value,videoBufferByteLength,videoBufferLength,videoByteCount,videoBytesPerSecond,addEventListener,addHeader,allowDomain,allowInsecureDomain,attachAudio,attachCamera,browse,browse,call,cancel,clear,close,close,close,close,close,close,close,close,connect,connect,connect,connect,connect,decode,download,flush,flush,getClassByAlias,getLocal,getRemote,load,load,load,navigateToURL,onPeerConnect,pause,play2,play,preloadEmbeddedData,publish,readBoolean,readBoolean,readByte,readByte,readBytes,readBytes,readDouble,readDouble,readFloat,readFloat,readInt,readInt,readMultiByte,readMultiByte,readObject,readObject,readShort,readShort,readUTFBytes,readUTFBytes,readUTF,readUTF,readUnsignedByte,readUnsignedByte,readUnsignedInt,readUnsignedInt,readUnsignedShort,readUnsignedShort,receiveAudio,receiveVideoFPS,receiveVideo,registerClassAlias,resetDRMVouchers,resume,save,seek,send,send,send,send,sendToURL,setDRMAuthenticationCredentials,setDirty,setLoginCredentialsForHost,setProperty,toString,toString,togglePause,upload,uploadUnencoded,writeBoolean,writeByte,writeBytes,writeDouble,writeDynamicProperties,writeDynamicProperty,writeFloat,writeInt,writeMultiByte,writeObject,writeShort,writeUTFBytes,writeUTF,writeUnsignedInt"><title>flash.net.NetConnection (ActionScript 3.0)</title><script src="../../AC_OETags.js" type="text/javascript"></script></head><body><script language="javascript" type="text/javascript" src="../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../help.js"></script><script language="javascript" type="text/javascript" src="../../cookies.js"></script><script language="javascript" type="text/javascript">  
            <!--  
			    
				asdocTitle = 'NetConnection - ActionScript 3.0 Language and Components Reference';

				var baseRef = '../../';

				window.onload = configPage;
			      
			    -->  
            </script>
<script language="javascript" type="text/javascript"><!--
function submitValue(){
var searchStr=document.getElementById('search-livedocs').value;
window.location="../../search.html"+"###"+searchStr;
}
--></script><script type="text/javascript">
		scrollToNameAnchor();
	</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">ActionScript 3.0 Language and Components Reference</td><td class="titleTableSearch" align="center"><form class="searchForm" method="get" action="../../search.html" onsubmit="submitValue();"><input class="hidden" name="loc" value="" type="hidden"><input class="hidden" name="termPrefix" value="" type="hidden"><input class="hidden" name="term" value="" type="hidden"><input class="hidden" name="area" value="" type="hidden"><input id="search-livedocs" name="search_text" value="" title="" type="text"> <input type="button" name="action" value="Search" onclick="submitValue()"></form></td><td class="titleTableTopNav" align="right"><a href="../../../../Flash/10.0_Welcome/index.html">Home</a>&nbsp;|&nbsp;<a href="../../package-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Packages</a>&nbsp;|&nbsp;<a href="../../class-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Classes</a>&nbsp;|&nbsp;<a href="../../language-elements.html">Language Elements</a>&nbsp;| <a href="../../all-index-Symbols.html" onclick="loadClassListFrame('../../index-list.html')">Index</a>&nbsp;|&nbsp;<a href="../../appendixes.html">Appendixes</a>&nbsp;|&nbsp;<a href="../../conventions.html">Conventions</a>&nbsp;|&nbsp;<a id="framesLink1" href="../../index.html?flash/net/NetConnection.html&amp;flash/net/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../images/logo.jpg" class="logoImage" alt=" Adobe Logo " title=" Adobe Logo "></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">NetConnection</td><td class="titleTableSubNav" id="subNav" align="right" colspan="2"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#styleSummary">Styles</a>&nbsp;| <a href="#effectSummary">Effects</a>&nbsp;| <a href="#constantSummary">Constants</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3">&nbsp;</td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve">
                
                    
                

				<!--

				
				    
				

					if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("NetConnection"); titleBar_setSubNav(false,true,false	,false,true,false,true,true,false	,false,false,false,false,false);}

				    
				        
				    
				-->
                
                    
                
			</script><div class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">flash.net</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public  class  NetConnection</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">NetConnection  <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../flash/events/EventDispatcher.html">EventDispatcher</a> <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../Object.html">Object</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p></p>
        The NetConnection class creates a bidirectional connection between
        <span>a Flash Player 
 or AIR</span>
        
        
        application and a Flash Media Server application or 
 between
        <span>a Flash Player or AIR</span>
        
        
        application and an application server running Flash Remoting. A NetConnection object is like a pipe between 
 the client and the server. Use NetStream objects to send streams through the pipe.
        <p>Without Flash Media Server, you can use the NetConnection class to play video and MP3 files from a local file system or from a web server.</p>
        
               <p>
          For information about supported codecs and file formats, see
          <a href="http://www.adobe.com/go/hardware_scaling_en" target="external">http://www.adobe.com/go/hardware_scaling_en</a>
          and the
          <a href="http://www.adobe.com/support/documentation" target="external">Flash Media Server documentation</a>
          .
        </p>
        
               <p>When you use the NetConnection class, consider the following security model:</p>
        
               <ul>
                  <li>Loading and playing an audio or video file is not allowed if the calling file is in a network sandbox
 and the file to be loaded is local.</li>
                  <li>By default, loading and playing an audio or video file is not allowed if the calling file is local and 
 tries to load and play a remote file. A user must grant explicit permission to allow this.</li>
               </ul>
        
               <p>
          However, in Adobe AIR, content in the
          <code>application</code>
          security sandbox 
 (content installed with the AIR application) are not restricted by these security limitations.
        </p>
        
               <p>For more information, see the following:</p>
        
               <ul>
                  <li>
            The
            <a href="http://www.adobe.com/go/flashcs4_prog_as3_security_en" target="external">security chapter</a>
            in the
            <i>Programming ActionScript 3.0</i>
            book and the latest comments on LiveDocs
          </li>
                  <li>
            The Flash Player Developer Center Topic:
            <a href="http://www.adobe.com/go/devnet_security_en" target="external">Security</a>
                  </li>
               </ul>
        
               <p>
                  <b>Note</b>
          : This class was dynamic in ActionScript 2.0 but is now sealed.
 To write callback methods for this class, you can either extend the class and define the 
 callback methods in your subclass, or you can use the
          <code>client</code>
          property to refer to an object and define the callback methods on that object.
        </p>
        
            <p></p><p><a href="#includeExamplesSummary">View the examples</a></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="NetConnection.html#client" target="">client</a><br/><a href="NetStream.html" target="">NetStream</a><br/><a href="NetConnection.html#connect()" target="">connect()</a></div><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><div class="showHideLinks"><div id="hideInheritedProperty" class="hideInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(false,'Property');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Properties</a></div><div id="showInheritedProperty" class="showInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(true,'Property');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th>&nbsp;</th><th colspan="2">Property</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#client" class="signatureLink">client</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">Indicates the object on which callback methods should be invoked.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#connected" class="signatureLink">connected</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Indicates whether the application is connected to a server through
     a persistent RTMP connection (true) or not (false).</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#connectedProxyType" class="signatureLink">connectedProxyType</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The proxy type used to make a successful NetConnection.connect() call to Flash Media Server:
      "none", "HTTP", "HTTPS", or "CONNECT".</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../Object.html#constructor" class="signatureLink">constructor</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">A reference to the class object or constructor function for a given object instance.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#defaultObjectEncoding" class="signatureLink">defaultObjectEncoding</a> : <a href="../../uint.html">uint</a><div class="summaryTableDescription">[static] The default object encoding for NetConnection objects.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#farID" class="signatureLink">farID</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The identifier of the Flash Media Server instance to which this Flash Player or Adobe AIR instance is connected.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#farNonce" class="signatureLink">farNonce</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] A value chosen substantially by Flash Media Server, unique to this connection.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#maxPeerConnections" class="signatureLink">maxPeerConnections</a> : <a href="../../uint.html">uint</a><div class="summaryTableDescription">The total number of inbound and outbound peer connections that this instance of Flash Player or Adobe AIR allows.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#nearID" class="signatureLink">nearID</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The identifier of this Flash Player or Adobe AIR instance for this NetConnection instance.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#nearNonce" class="signatureLink">nearNonce</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] A value chosen substantially by this Flash Player or Adobe AIR instance, unique to this connection.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#objectEncoding" class="signatureLink">objectEncoding</a> : <a href="../../uint.html">uint</a><div class="summaryTableDescription">The object encoding for this NetConnection instance.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#protocol" class="signatureLink">protocol</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The protocol used to establish the connection.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../Object.html#prototype" class="signatureLink">prototype</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">[static] A reference to the prototype object of a class or function object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#proxyType" class="signatureLink">proxyType</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">Determines which fallback methods are tried if an
     initial connection attempt to the server fails.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#unconnectedPeerStreams" class="signatureLink">unconnectedPeerStreams</a> : <a href="../../Array.html">Array</a><div class="summaryTableDescription">[read-only] An object that holds all of the peer subscriber NetStream objects that are not associated with publishing NetStream objects.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#uri" class="signatureLink">uri</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The URI passed to the NetConnection.connect() method.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#usingTLS" class="signatureLink">usingTLS</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Indicates whether a secure connection was made using native Transport Layer Security (TLS) 
     rather than HTTPS.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><div class="showHideLinks"><div id="hideInheritedMethod" class="hideInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(false,'Method');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Methods</a></div><div id="showInheritedMethod" class="showInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(true,'Method');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#NetConnection()" class="signatureLink">NetConnection</a>()</div><div class="summaryTableDescription">Creates a NetConnection object.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#addEventListener()" class="signatureLink">addEventListener</a>(type:<a href="../../String.html">String</a>, listener:<a href="../../Function.html">Function</a>, useCapture:<a href="../../Boolean.html">Boolean</a> = false, priority:<a href="../../int.html">int</a> = 0, useWeakReference:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Registers an event listener object with an EventDispatcher object so that the listener 
 receives notification of an event.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#addHeader()" class="signatureLink">addHeader</a>(operation:<a href="../../String.html">String</a>, mustUnderstand:<a href="../../Boolean.html">Boolean</a> = false, param:<a href="../../Object.html">Object</a> = null):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Adds a context header to the Action Message Format (AMF) packet structure.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#call()" class="signatureLink">call</a>(command:<a href="../../String.html">String</a>, responder:<a href="../../flash/net/Responder.html">Responder</a>, <a href="../../statements.html#..._(rest)_parameter">...</a> arguments):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Invokes a command or method on Flash Media Server or on an application server running Flash Remoting.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#close()" class="signatureLink">close</a>():<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Closes the connection that was opened locally or to the server and dispatches
     a netStatus event
     with a code property of NetConnection.Connect.Closed.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#connect()" class="signatureLink">connect</a>(command:<a href="../../String.html">String</a>, <a href="../../statements.html#..._(rest)_parameter">...</a> arguments):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Creates a bidirectional connection between a Flash Player 
  or AIR an AIR application and a Flash Media Server application.</div></td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#dispatchEvent()" class="signatureLink">dispatchEvent</a>(event:<a href="../../flash/events/Event.html">Event</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Dispatches an event into the event flow.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#hasEventListener()" class="signatureLink">hasEventListener</a>(type:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Checks whether the EventDispatcher object has any listeners registered for a specific type 
 of event.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#hasOwnProperty()" class="signatureLink">hasOwnProperty</a>(name:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an object has a specified property defined.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#isPrototypeOf()" class="signatureLink">isPrototypeOf</a>(theClass:<a href="../../Object.html">Object</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an instance of the Object class is in the prototype chain of the object specified 
  as the parameter.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#propertyIsEnumerable()" class="signatureLink">propertyIsEnumerable</a>(name:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether the specified property exists and is enumerable.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#removeEventListener()" class="signatureLink">removeEventListener</a>(type:<a href="../../String.html">String</a>, listener:<a href="../../Function.html">Function</a>, useCapture:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Removes a listener from the EventDispatcher object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#setPropertyIsEnumerable()" class="signatureLink">setPropertyIsEnumerable</a>(name:<a href="../../String.html">String</a>, isEnum:<a href="../../Boolean.html">Boolean</a> = true):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Sets the availability of a dynamic property for loop operations.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#toString()" class="signatureLink">toString</a>():<a href="../../String.html">String</a></div><div class="summaryTableDescription">Returns the string representation of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#valueOf()" class="signatureLink">valueOf</a>():<a href="../../Object.html">Object</a></div><div class="summaryTableDescription">Returns the primitive value of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#willTrigger()" class="signatureLink">willTrigger</a>(type:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Checks whether an event listener is registered with this EventDispatcher object or any of 
 its ancestors for the specified event type.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr></table></div><a name="eventSummary"></a><div class="summarySection"><div class="summaryTableTitle">Events</div><div class="showHideLinks"><div id="hideInheritedEvent" class="hideInheritedEvent"><a class="showHideLink" href="#eventSummary" onclick="javascript:setInheritedVisible(false,'Event');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Events</a></div><div id="showInheritedEvent" class="showInheritedEvent"><a class="showHideLink" href="#eventSummary" onclick="javascript:setInheritedVisible(true,'Event');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Events</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableEvent"><tr><th>&nbsp;</th><th colspan="2">Event</th><th> Summary </th><th>Defined By</th></tr><tr class="hideInheritedEvent"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#event:activate" class="signatureLink">activate</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.</td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:asyncError" class="signatureLink">asyncError</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when an exception is thrown asynchronously — that is, from native asynchronous code.</td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class="hideInheritedEvent"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../flash/events/EventDispatcher.html#event:deactivate" class="signatureLink">deactivate</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.</td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:ioError" class="signatureLink">ioError</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when an input or output error occurs that causes a network operation to fail.</td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:netStatus" class="signatureLink">netStatus</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a NetConnection object is reporting its status or error condition.</td><td class="summaryTableOwnerCol">NetConnection</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:securityError" class="signatureLink">securityError</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched if a call to NetConnection.call() attempts to connect to a server outside the caller's security sandbox.</td><td class="summaryTableOwnerCol">NetConnection</td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="client"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">client</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>client:<a href="../../Object.html">Object</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Indicates the object on which callback methods should be invoked. The default is 
     this NetConnection instance. If you set the
          <code>client</code>
          property to another object, 
     callback methods will be invoked on that object.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get client():<a href="../../Object.html">Object</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set client(value:<a href="../../Object.html">Object</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../TypeError.html">TypeError</a> </code> &mdash; 
              The
              <code>client</code>
              property must be set to a non-null object.
            </td></tr></table></div><a name="propertyDetail"></a><a name="connected"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">connected</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>connected:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Indicates whether the application is connected to a server through
     a persistent RTMP connection (
          <code>true</code>
          ) or not (
          <code>false</code>
          ). 
     When connected through HTTP, this property is
          <code>false</code>
          , except
     when connected to Flash Remoting services on an application server, 
     in which case it is
          <code>true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get connected():<a href="../../Boolean.html">Boolean</a></code><br/></div><a name="propertyDetail"></a><a name="connectedProxyType"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">connectedProxyType</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>connectedProxyType:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The proxy type used to make a successful
          <code>NetConnection.connect()</code>
          call to Flash Media Server:
          <code>"none"</code>
          ,
          <code>"HTTP"</code>
          ,
          <code>"HTTPS"</code>
          , or
          <code>"CONNECT"</code>
          . 
     The value is
          <code>"none"</code>
          if the connection is not tunneled,
          <code>"HTTP"</code>
          if the connection is tunneled over HTTP,
          <code>"HTTPS"</code>
          if the connection is tunneled over HTTPS, 
     and
          <code>"CONNECT"</code>
          if the connection is tunneled using the HTTP CONNECT method.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get connectedProxyType():<a href="../../String.html">String</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; An attempt was made to access this property when the NetConnection instance
     was not connected.</td></tr></table></div><a name="propertyDetail"></a><a name="defaultObjectEncoding"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">defaultObjectEncoding</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>defaultObjectEncoding:<a href="../../uint.html">uint</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The default object encoding for NetConnection objects.
     When an object is written to or read from binary data, the
          <code>defaultObjectEncoding</code>
          property indicates which Action Message Format (AMF) version is used to serialize the data: 
  the ActionScript 3.0 format (
          <code>ObjectEncoding.AMF3</code>
          )
     or the ActionScript 1.0 and ActionScript 2.0 format (
          <code>ObjectEncoding.AMF0</code>
          ).
          <p>
            The default value is
            <code>ObjectEncoding.AMF3</code>
            . 
     Changing
            <code>NetConnection.defaultObjectEncoding</code>
            does not affect existing NetConnection instances; it affects only instances that 
     are created subsequently.
          </p>
          
          <p>
            To set an object's encoding separately (rather than setting object encoding for the entire
     application), set the
            <code>objectEncoding</code>
            property of the NetConnection object instead.
          </p>
          
          <p>
            For more detailed information, see the description of the
            <code>objectEncoding</code>
            property.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get defaultObjectEncoding():<a href="../../uint.html">uint</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set defaultObjectEncoding(value:<a href="../../uint.html">uint</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetConnection.html#objectEncoding" target="">NetConnection.objectEncoding</a><br/><a href="ObjectEncoding.html" target="">flash.net.ObjectEncoding</a></div></div><a name="propertyDetail"></a><a name="farID"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">farID</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>farID:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>The identifier of the Flash Media Server instance to which this Flash Player or Adobe AIR instance is connected.  
     This property is meaningful only for RTMFP connections. The value of this property is available only after an RTMFP connection is established.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get farID():<a href="../../String.html">String</a></code><br/></div><a name="propertyDetail"></a><a name="farNonce"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">farNonce</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>farNonce:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          A value chosen substantially by Flash Media Server, unique to this connection. This value appears to the server
     as its
          <code>client.nearNonce</code>
          value. This value is defined only for RTMFP connections.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get farNonce():<a href="../../String.html">String</a></code><br/></div><a name="propertyDetail"></a><a name="maxPeerConnections"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">maxPeerConnections</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>maxPeerConnections:<a href="../../uint.html">uint</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          The total number of inbound and outbound peer connections that this instance of Flash Player or Adobe AIR allows. 
     The default value is 8.
          <p>This value does not distinguish between publisher and subscriber connections. If this value is reduced while
     peer connections are present, the new value affects new incoming connections only. Existing connections are not dropped.</p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get maxPeerConnections():<a href="../../uint.html">uint</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set maxPeerConnections(value:<a href="../../uint.html">uint</a>):<a href="../../specialTypes.html#void">void</a></code><br/></div><a name="propertyDetail"></a><a name="nearID"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">nearID</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>nearID:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          The identifier of this Flash Player or Adobe AIR instance for this NetConnection instance. This property is meaningful only for RTMFP connections.
          <p>
            Every NetConnection instance has a unique
            <code>nearID</code>
            property. No Flash Player or Adobe AIR instance
     or NetConnection instance has the same identifier.
          </p>
          
          <p>
            Other Flash Player or Adobe AIR instances
     use this identifier as the
            <code>peerID</code>
            for new NetStream connections to this client.
     Subsequently, this identifier is the
            <code>farID</code>
            in any peer NetStream that connects to this instance.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get nearID():<a href="../../String.html">String</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetStream.html#farID" target="">NetStream.farID</a><br/>NetStream()</div></div><a name="propertyDetail"></a><a name="nearNonce"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">nearNonce</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>nearNonce:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          A value chosen substantially by this Flash Player or Adobe AIR instance, unique to this connection. This value appears to the server
     as its
          <code>client.farNonce</code>
          value. This value is defined only for RTMFP connections.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get nearNonce():<a href="../../String.html">String</a></code><br/></div><a name="propertyDetail"></a><a name="objectEncoding"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">objectEncoding</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>objectEncoding:<a href="../../uint.html">uint</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The object encoding for this NetConnection instance.
          <p>
            When an object is written to or read from binary data, the
            <code>defaultObjectEncoding</code>
            property indicates which Action Message Format (AMF) version should be used to serialize the data: the ActionScript 3.0 format (
            <code>ObjectEncoding.AMF3</code>
            )
     or the ActionScript 1.0 and ActionScript 2.0 format (
            <code>ObjectEncoding.AMF0</code>
            ). 
     Set the
            <code>objectEncoding</code>
            property to set an AMF version for a NetConnection instance.
          </p>
          
          <p>It's important to understand this property if your application needs to
     communicate with servers released prior to Flash Player 9. The following three scenarios are possible:</p>
          
          <ul><li>
              Connecting to a server that supports AMF3 (for example, Flex Data Services 2 or Flash Media Server 3). 
  The default value of
              <code>defaultObjectEncoding</code>
              is
              <code>ObjectEncoding.AMF3</code>
              . All NetConnection instances created in this
  file use AMF3 serialization, so you don't need to set the
              <code>objectEncoding</code>
              property.
            </li><li>
              Connecting to a server that doesn't support AMF3 (for example, Flash Media Server 2). 
     In this scenario, set the static
              <code>NetConnection.defaultObjectEncoding</code>
              property to
              <code>ObjectEncoding.AMF0</code>
              . All NetConnection instances created in this
     SWF file use AMF0 serialization. You don't need to set the
              <code>objectEncoding</code>
              property.
            </li><li>
              Connecting to multiple servers that use different encoding versions. Instead of
     using
              <code>defaultObjectEncoding</code>
              , set the object encoding on a per-connection
     basis using the
              <code>objectEncoding</code>
              property for each connection. 
     Set it to
              <code>ObjectEncoding.AMF0</code>
              to connect to
     servers that use AMF0 encoding, such as Flash Media Server 2, 
     and set it to
              <code>ObjectEncoding.AMF3</code>
              to connect to
     servers that use AMF3 encoding, such as Flex Data Services 2.
            </li></ul>
          
          <p>
            Once a NetConnection instance is connected, its
            <code>objectEncoding</code>
            property is read-only.
          </p>
          
          <p>
            If you use the wrong encoding to connect to a server, the NetConnection object 
  dispatches the
            <code>netStatus</code>
            event. The
            <code>NetStatusEvent.info</code>
            property contains an information object with a
            <code>code</code>
            property value of
            <code>NetConnection.Connect.Failed</code>
            , and a description explaining that the object
     encoding is incorrect.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get objectEncoding():<a href="../../uint.html">uint</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set objectEncoding(value:<a href="../../uint.html">uint</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ReferenceError.html">ReferenceError</a> </code> &mdash; 
              An attempt was made to set the value of the
              <code>objectEncoding</code>
              property while the NetConnection instance was connected.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              This property was set to a value other than
              <code>ObjectEncoding.AMF0</code>
              or
              <code>ObjectEncoding.AMF3</code>
              .
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetConnection.html#defaultObjectEncoding" target="">defaultObjectEncoding</a><br/><a href="ObjectEncoding.html" target="">flash.net.ObjectEncoding</a></div></div><a name="propertyDetail"></a><a name="protocol"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">protocol</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>protocol:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          The protocol used to establish the connection. This property is relevant when using
     Flash Media Server. Possible values are as follows:
          <ul><li>
              <code>"rtmp"</code>
              : Real-Time Messaging Protocol (RTMP)
            </li><li>
              <code>"rtmpe"</code>
              : Encrypted RTMP
            </li><li>
              <code>"rtmpt"</code>
              : HTTP tunneling RTMP
            </li><li>
              <code>"rtmpte"</code>
              : HTTP tunneling encrypted RTMP
            </li><li>
              <code>"rtmps"</code>
              : HTTPS based RTMP
            </li><li>
              <code>"rtmfp"</code>
              : Real-Time Media Flow Protocol (RTMFP)
            </li></ul>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get protocol():<a href="../../String.html">String</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; An attempt was made to access this property when the NetConnection instance
     was not connected.</td></tr></table></div><a name="propertyDetail"></a><a name="proxyType"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">proxyType</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>proxyType:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Determines which fallback methods are tried if an
     initial connection attempt to the server fails. You must set the
          <code>proxyType</code>
          property before 
     calling the
          <code>NetConnection.connect()</code>
          method.
          <p>
            Acceptable values are
            <code>"none"</code>
            ,
            <code>"HTTP"</code>
            ,
            <code>"CONNECT"</code>
            , 
  and
            <code>"best"</code>
            .
          </p>
          
          <p>
            The default value for this property is
            <code>"none"</code>
            ; 
  if you do not change this value, the application uses HTTPS tunneling for RTMPS.
  If the property is set to
            <code>"best"</code>
            , the client attempts to connect using native SSL. 
  If the connection fails, other connection methods are attempted.
  If the property is set to
            <code>"HTTP"</code>
            and a direct connection fails, HTTP tunneling is used.
  If the property is set to
            <code>"CONNECT"</code>
            and a direct connection fails,
     the
            <code>CONNECT</code>
            method of tunneling is used. If that fails, the connection will
     not fall back to HTTP tunneling.
          </p>
          
          <p>
            This property is applicable only when using RTMP, RTMPS, or RTMPT. The
            <code>CONNECT</code>
            method is applicable only to users who are connected to the network by a proxy server.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get proxyType():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set proxyType(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/></div><a name="propertyDetail"></a><a name="unconnectedPeerStreams"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">unconnectedPeerStreams</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>unconnectedPeerStreams:<a href="../../Array.html">Array</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          An object that holds all of the peer subscriber NetStream objects that are not associated with publishing NetStream objects.
     Subscriber NetStream objects that are associated with publishing NetStream objects are in the
          <code>NetStream.peerStreams</code>
          array.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get unconnectedPeerStreams():<a href="../../Array.html">Array</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetStream.html#peerStreams" target="">NetStream.peerStreams</a></div></div><a name="propertyDetail"></a><a name="uri"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">uri</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>uri:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The URI passed to the
          <code>NetConnection.connect()</code>
          method. 
     If
          <code>NetConnection.connect()</code>
          hasn't been called or if no URI was passed, 
     this property is
          <code>undefined</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get uri():<a href="../../String.html">String</a></code><br/></div><a name="propertyDetail"></a><a name="usingTLS"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">usingTLS</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>usingTLS:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Indicates whether a secure connection was made using native Transport Layer Security (TLS) 
     rather than HTTPS. This property is valid only when a NetConnection object is connected.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get usingTLS():<a href="../../Boolean.html">Boolean</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; An attempt was made to access this property when the NetConnection instance
     was not connected.</td></tr></table></div><a name="constructorDetail"></a><div class="detailSectionHeader">Constructor Detail</div><a name="NetConnection()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">NetConnection</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">Constructor</td></tr></table><div class="detailBody"><code>public function NetConnection()</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p>
          Creates a NetConnection object. Call
          <code>connect()</code>
          to make a connection.
          <p>
            If an application needs to communicate with servers released prior
     to Flash Player 9, you might need to set the NetConnection object's
            <code>objectEncoding</code>
            property.
          </p>
          
        </p><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetConnection.html#connect()" target="">flash.net.NetConnection.connect()</a><br/><a href="NetConnection.html#objectEncoding" target="">objectEncoding</a></div></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="addHeader()"></a><a name="addHeader(String,Boolean,Object)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">addHeader</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function addHeader(operation:<a href="../../String.html">String</a>, mustUnderstand:<a href="../../Boolean.html">Boolean</a> = false, param:<a href="../../Object.html">Object</a> = null):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Adds a context header to the Action Message Format (AMF) packet structure. This header is sent with
     every future AMF packet. If you call
          <code>NetConnection.addHeader()</code>
          using the same name, the new header replaces the existing header, and the new header
     persists for the duration of the NetConnection object. You can remove a header by
     calling
          <code>NetConnection.addHeader()</code>
          with the name of the header to remove 
     an undefined object.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">operation</span>:<a href="../../String.html">String</a></code> &mdash; Identifies the header and the ActionScript object data associated with it.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">mustUnderstand</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>false</code>)<code></code> &mdash; 
              A value of
              <code>true</code>
              indicates that the server must understand
     and process this header before it handles any of the following headers or messages.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">param</span>:<a href="../../Object.html">Object</a></code> (default = <code>null</code>)<code></code> &mdash; Any ActionScript object.</td></tr></table></p></div><a name="call()"></a><a name="call(String,flash.net.Responder,restParam)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">call</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function call(command:<a href="../../String.html">String</a>, responder:<a href="../../flash/net/Responder.html">Responder</a>, <a href="../../statements.html#..._(rest)_parameter">...</a> arguments):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Invokes a command or method on Flash Media Server or on an application server running Flash Remoting.
          Before calling
          <code>NetConnection.call()</code>
          you must call
          <code>NetConnection.connect()</code>
          to connect to the server. You must create a server-side function to pass to this method.
          <p>
            You cannot connect to commonly reserved ports. For a complete list of blocked
     ports, see "Restricting Networking APIs" in the
            
            
            <span>
              
              <a href="http://www.adobe.com/go/flashcs4_prog_as3_security_en" target="external">security chapter</a>
              
            </span>
            of the
            <i>Programming ActionScript 3.0</i>
            book.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">command</span>:<a href="../../String.html">String</a></code> &mdash; 
              A method specified in the form
              <code>[objectPath/]method</code>
              . For example, 
     the
              <code>someObject/doSomething</code>
              command tells the remote server
     to invoke the
              <code>clientObject.someObject.doSomething()</code>
              method, with all the optional
              <code>... arguments</code>
              parameters. If the object path is missing,
              <code>clientObject.doSomething()</code>
              is invoked on the remote server.
              <p>
                With Flash Media Server,
                <code>command</code>
                is the name of a function
     defined in an application's server-side script.
     You do not need to use an object path before
                <code>command</code>
                if the server-side script is placed at the root level of
     the application directory.
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">responder</span>:<a href="../../flash/net/Responder.html">Responder</a></code> &mdash; 
              An optional object that is used to handle return values from the server.
     The Responder object can have two defined methods to handle the returned result:
              <code>result</code>
              and
              <code>status</code>
              . If an error is returned as the result,
              <code>status</code>
              is invoked; otherwise,
              <code>result</code>
              is invoked. The Responder object
     can process errors related to specific operations, while the NetConnection object responds to
     errors related to the connection status.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><a href="../../statements.html#..._(rest)_parameter">...</a> <span class="label">arguments</span></code> &mdash; 
              Optional arguments that can be of any ActionScript type, 
     including a reference to another ActionScript object. These arguments are passed 
     to the method specified in the
              <code>command</code>
              parameter when the method is executed on the 
     remote application server.
            </td></tr></table></p><br/><span class="label">Events</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><b>securityError</b>:<a href="../../flash/events/SecurityErrorEvent.html"><code>SecurityErrorEvent</code></a></code> &mdash; A call attempted
     to communicate with a server outside the caller's security sandbox.
     You can avoid this problem by using a policy file on the server.</td></tr></table></div><a name="close()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">close</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function close():<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Closes the connection that was opened locally or to the server and dispatches
     a
          <code>netStatus</code>
          event
     with a
          <code>code</code>
          property of
          <code>NetConnection.Connect.Closed</code>
          .
          <p>
            This method disconnects all NetStream objects running over the connection. 
     Any queued data that has not been sent is discarded. (To terminate 
     local or server streams without closing the connection, use
            <code>NetStream.close()</code>
            .) 
     If you close the connection and then want to create a new one,
     you must create a new NetConnection object and call the
            <code>connect()</code>
            method again.
          </p>
          
          <p>
            The
            <code>close()</code>
            method also disconnects all remote shared objects running 
     over this connection.
     However, you don't need to recreate the shared object to reconnect. Instead, you can just
     call
            <code>SharedObject.connect()</code>
            to reestablish the connection to the shared object.
     Also, any data in the shared object that was queued when you issued
            <code>NetConnection.close()</code>
            will be sent after you reestablish a connection
     to the shared object.
          </p>
          
          <p>
            With Flash Media Server, the best development practice is to call
            <code>close()</code>
            when the client no longer needs the connection to the server. Calling
            <code>close()</code>
            is the fastest way to clean up unused connections. You can configure the server to close idle connections
     automatically as a back-up measure. For more information, see 
     the
            <i>
              <a href="http://www.adobe.com/support/documentation" target="external">Flash Media Server Configuration and Administration Guide</a>
            </i>
            .
          </p>
          
        </p><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetStream.html" target="">NetStream</a><br/><a href="../../flash/events/NetStatusEvent.html#info" target="">flash.events.NetStatusEvent.info</a></div></div><a name="connect()"></a><a name="connect(String,restParam)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">connect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function connect(command:<a href="../../String.html">String</a>, <a href="../../statements.html#..._(rest)_parameter">...</a> arguments):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Creates a bidirectional connection between
          <span>a Flash Player 
  or AIR</span>
          
          
          application and a Flash Media Server application. 
     A NetConnection object is like a pipe between the client and the server. Use NetStream objects to send streams through the pipe. 
     For information about codecs and file formats supported by Flash Media Server, see
     the
          <a href="http://www.adobe.com/support/documentation" target="external">Flash Media Server documentation</a>
          .
          <p>
            Without Flash Media Server, call
            <code>NetConnection.connect()</code>
            to play video and MP3 files from a local file system or from a web server. 
     For information about supported codecs and file formats, see
            <a href="http://www.adobe.com/go/hardware_scaling_en" target="external">http://www.adobe.com/go/hardware_scaling_en</a>
            .
          </p>
          
          <p>
            Creates a bidirectional connection between
            <span>a Flash Player 
  or AIR</span>
            
            
            application and an application server running
     the Flash Remoting service. Use the NetServices class to call functions on and return results from application servers over a NetConnection object.
     For more information, see the
            <a href="http://www.adobe.com/support/documentation" target="external">Flash Remoting documentation</a>
            .
          </p>
          
          <p>When using this method, consider the following security model:</p>
          
          <ul><li>
              By default,
              <span>Flash Player or</span>
              AIR denies access between sandboxes.  
      A website can enable access to a resource by using a URL policy file.
            </li><li>Your application can deny access to a resource on the server.
      In a Flash Media Server application, you need to add server-side code to deny access.
      See the Flash Media Server documentation for details.</li><li>
              You cannot use
              <code>NetConnection.connect()</code>
              if the calling file is in the
      local-with-file-system sandbox.
            </li><li>
              You cannot connect to commonly reserved ports. For a complete list of blocked
     ports, see "Restricting Networking APIs" in the
              
              
              <span>
                
                <a href="http://www.adobe.com/go/flashcs4_prog_as3_security_en" target="external">security chapter</a>
                
              </span>
              of the
              <i>Programming ActionScript 3.0</i>
              book.
            </li><li>
              You can prevent a SWF file from using this method by setting the
              <code>allowNetworking</code>
              parameter of the the
              <code>object</code>
              and
              <code>embed</code>
              tags in the HTML 
     page that contains the SWF content.
            </li></ul>
          
          <p>
            However, in Adobe AIR, content in the
            <code>application</code>
            security sandbox (content
  installed with the AIR application) are not restricted by these security limitations.
          </p>
          
          <p>For more information, see the following:</p>
          
          <ul><li>
              The
              <a href="http://www.adobe.com/go/flashcs4_prog_as3_security_en" target="external">security chapter</a>
              in the
              <i>Programming ActionScript 3.0</i>
              book and the latest comments on LiveDocs
            </li><li>
              The Flash Player Developer Center Topic:
              <a href="http://www.adobe.com/go/devnet_security_en" target="external">Security</a>
            </li></ul>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">command</span>:<a href="../../String.html">String</a></code> &mdash; 
              Set this parameter to
              <code>null</code>
              if you are connecting to a 
     video file on the local computer.
     If you are connecting to a server, set this parameter to the URI of the 
     application that contains the video file on the server. Use the following  
     syntax (items in brackets are optional):
              <p>
                <code>protocol:[//host][:port]/appname[/instanceName]</code>
              </p>
              
              <p>
                To connect to Flash Media Server, use
                <code>rtmp</code>
                ,
                <code>rtmpe</code>
                ,
                <code>rtmps</code>
                ,
                <code>rtmpt</code>
                ,
                <code>rtmpte</code>
                , or
                <code>rtmfp</code>
                as the protocol. If the connection is successful, a
                <code>netStatus</code>
                event with a
                <code>code</code>
                property of
                <code>NetConnection.Connect.Success</code>
                is returned.
     See the
                <code>NetStatusEvent.info</code>
                property for a list of
     all event codes returned in response to calling
                <code>connect()</code>
                .
              </p>
              
              <p>
                If the file is served from the same host where the server is installed, 
     you can omit the
                <code>host</code>
                parameter. If you omit the
                <code>instanceName</code>
                parameter,
                <span>Flash Player or</span>
                AIR connects to the application's default instance.
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><a href="../../statements.html#..._(rest)_parameter">...</a> <span class="label">arguments</span></code> &mdash; 
              Optional parameters of any type to be passed to the application 
     specified in
              <code>command</code>
              . 
     With Flash Media Server, the additional arguments are passed to the
              <code>application.onConnect()</code>
              event handler in the application's server-side 
     code. You must define and handle the arguments in
              <code>onConnect()</code>
              .
            </td></tr></table></p><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              The URI passed to the
              <code>command</code>
              parameter is 
     improperly formatted.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../flash/errors/IOError.html">IOError</a> </code> &mdash; 
              The connection failed. This might happen if you call
              <code>connect()</code>
              from within a
              <code>netStatus</code>
              event handler, which is not allowed.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../SecurityError.html">SecurityError</a> </code> &mdash; Local-with-filesystem SWF files cannot communicate with the Internet. 
  You can avoid this problem by reclassifying the SWF file as local-with-networking or trusted.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../SecurityError.html">SecurityError</a> </code> &mdash; 
              If you are trying to connect to a commonly reserved port. 
      For a complete list of blocked ports, see "Restricting Networking APIs" in the 
      security chapter of the
              <i>Programming ActionScript 3.0</i>
              book.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="NetStream.html" target="">flash.net.NetStream</a><br/><a href="../../flash/events/NetStatusEvent.html#info" target="">flash.events.NetStatusEvent.info</a></div></div><div class="detailSectionHeader"> Event Detail </div><a name="event:asyncError"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">asyncError</td><td class="detailHeaderType"> Event </td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/AsyncErrorEvent.html"><code>flash.events.AsyncErrorEvent</code></a><br/><span class="label">property AsyncErrorEvent.type  =  </span><a href="../../flash/events/AsyncErrorEvent.html#ASYNC_ERROR"><code>flash.events.AsyncErrorEvent.ASYNC_ERROR</code></a><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Dispatched when an exception is thrown asynchronously &mdash; that is, 
 from native asynchronous code.</p>
          The
          <code>AsyncErrorEvent.ASYNC_ERROR</code>
          constant defines the value of the
          <code>type</code>
          property of an
          <code>asyncError</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>false</code>
                    
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default
 behavior to cancel.
                    
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>
                    The object that is actively processing the
 Event object with an event listener.
                    
                  </td></tr><tr><td>
                    <code>target</code>
                  </td><td>The object dispatching the event.</td></tr><tr><td>
                    <code>error</code>
                  </td><td>The error that triggered the event.</td></tr></table>
          
        </div><a name="event:ioError"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">ioError</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/IOErrorEvent.html"><code>flash.events.IOErrorEvent</code></a><br/><span class="label">property IOErrorEvent.type  =  </span><a href="../../flash/events/IOErrorEvent.html#IO_ERROR"><code>flash.events.IOErrorEvent.IO_ERROR</code></a><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Dispatched when an input or output error occurs that causes a network operation to fail.</p>
          Defines the value of the
          <code>type</code>
          property of an
          <code>ioError</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>false</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default behavior to cancel.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
 object with an event listener.</td></tr><tr><td>
                    <code>errorID</code>
                  </td><td>A reference number associated with the specific error (AIR only).</td></tr><tr><td>
                    <code>target</code>
                  </td><td>The network object experiencing the input/output error.</td></tr><tr><td>
                    <code>text</code>
                  </td><td>Text to be displayed as an error message.</td></tr></table>
          
        </div><a name="event:netStatus"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">netStatus</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/NetStatusEvent.html"><code>flash.events.NetStatusEvent</code></a><br/><span class="label">property NetStatusEvent.type  =  </span><a href="../../flash/events/NetStatusEvent.html#NET_STATUS"><code>flash.events.NetStatusEvent.NET_STATUS</code></a><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Dispatched when a NetConnection object is reporting its status or error condition. 
 The
          <code>netStatus</code>
          event contains an
          <code>info</code>
          property,
 which is an information object that contains specific information about the event, 
 such as whether a connection attempt succeeded or failed.
        </p>
          Defines the value of the
          <code>type</code>
          property of a
          <code>netStatus</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>false</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default behavior to cancel.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
 object with an event listener.</td></tr><tr><td>
                    <code>info</code>
                  </td><td>An object with properties that describe the object's status or error condition.</td></tr><tr><td>
                    <code>target</code>
                  </td><td>The NetConnection or NetStream object reporting its status.</td></tr></table>
          
        <p><span class="label">See also</span></p><div class="seeAlso"><a href="../../flash/events/NetStatusEvent.html#info" target="">flash.events.NetStatusEvent.info</a></div></div><a name="event:securityError"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">securityError</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/SecurityErrorEvent.html"><code>flash.events.SecurityErrorEvent</code></a><br/><span class="label">property SecurityErrorEvent.type  =  </span><a href="../../flash/events/SecurityErrorEvent.html#SECURITY_ERROR"><code>flash.events.SecurityErrorEvent.SECURITY_ERROR</code></a><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Dispatched if a call to
          <code>NetConnection.call()</code>
          attempts to connect to a server outside the caller's security sandbox.
        </p>
          The
          <code>SecurityErrorEvent.SECURITY_ERROR</code>
          constant defines the value of the
          <code>type</code>
          property of a
          <code>securityError</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>false</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default behavior to cancel.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
 object with an event listener.</td></tr><tr><td>
                    <code>target</code>
                  </td><td>The network object reporting the security error.</td></tr><tr><td>
                    <code>text</code>
                  </td><td>Text to be displayed as an error message.</td></tr></table>
          
        <p><span class="label">See also</span></p><div class="seeAlso"><a href="NetConnection.html#call()" target="">NetConnection.call()</a></div></div><a name="includeExamplesSummary"></a><div class="detailSectionHeader">Examples<span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span></div><div class="exampleHeader">NetConnectionExample.as</div><br/><div class="detailBody">
        The following example uses a Video object with the NetConnection and 
 NetStream classes to load and play an FLV file. To run this example, you need an FLV file 
 whose name and location match the variable passed to
        <code>videoURL</code>
        ; 
 in this case, an FLV file called Video.flv that is in the same directory as the SWF file.
        <p>
          In this example, the code that creates the Video and NetStream objects and calls the
          <code>Video.attachNetStream()</code>
          and
          <code>NetStream.play()</code>
          methods is placed 
 in a handler function. The handler is called only if the
 attempt to connect to the NetConnection object is successful; that is, 
 when the
          <code>netStatus</code>
          event returns an
          <code>info</code>
          object with a
          <code>code</code>
          property that indicates success. 
 It is recommended that you wait for a successful connection before you call
          <code>NetStream.play()</code>
          .
        </p>
        
        <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.NetStatusEvent;
    import flash.events.SecurityErrorEvent;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.events.Event;

    public class NetConnectionExample extends Sprite {
        private var videoURL:String = "Video.flv";
        private var connection:NetConnection;
        private var stream:NetStream;

        public function NetConnectionExample() {
            connection = new NetConnection();
            connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
            connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
            connection.connect(null);
        }

        private function netStatusHandler(event:NetStatusEvent):void {
            switch (event.info.code) {
                case "NetConnection.Connect.Success":
                    connectStream();
                    break;
                case "NetStream.Play.StreamNotFound":
                    trace("Stream not found: " + videoURL);
                    break;
            }
        }

        private function securityErrorHandler(event:SecurityErrorEvent):void {
            trace("securityErrorHandler: " + event);
        }

        private function connectStream():void {
            var stream:NetStream = new NetStream(connection);
            stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
            stream.client = new CustomClient();
            var video:Video = new Video();
            video.attachNetStream(stream);
            stream.play(videoURL);
            addChild(video);
        }
    }
}

class CustomClient {
    public function onMetaData(info:Object):void {
        trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
    }
    public function onCuePoint(info:Object):void {
        trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
    }
}</pre></div>
      </div><br/><br/><hr><br/><p></p><center class="copyright"> &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  </center><div style="display:none">NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection NetConnection </div><div style="display:none">flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection flash.net.NetConnection </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
