I have written the following code and SharedObject.getRemote return 
NULL !!! 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"; 
width="100%" height="100%" creationComplete="initApp()">
<mx:Script>
<![CDATA[
 import flash.media.*;
 import flash.net.*; 
 import mx.controls.Alert;

 public var nc_client:NetConnection;
 public var so:SharedObject;

 public function initApp():void {
   nc_client=new NetConnection(); 
   nc_client.connect("rtmp://localhost/testAS3","");
   nc_client.addEventListener
(NetStatusEvent.NET_STATUS,netStatusHandler);
 }

 public function netStatusHandler(event:NetStatusEvent):void {
   var info:Object = event.info;
   if (info.code == "NetConnection.Connect.Success") {
   so=SharedObject.getRemote("so", nc_client.uri, false);
   if (so==null) mx.controls.Alert.show('SharedObject.getRemote 
return NULL');
  }
 }
]]>
</mx:Script> 
</mx:Application> 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to