FMS Remote Shared Objects and PHP

Is there a way to access remote shared objects from PHP ?
I've created an a/v chat application, once a user is connected to it, it creates a remote shared object that indicates that the user is online. I want to find out if a shared object exists via PHP to let other users, who are not connected to the flash application, know what's the user's status.
Thanks!

All the things you want to do are typical Shared Object's functionalities. I've already created a couple of huge projects myself using Shared Objects functionalities, so I can say with the full responsibility that all the things you want to do can be done very easily using those classes.
Basicaly, if you want to build your app using SO, there are few options available for you on the market. First, and the best I guess, will be Adobe's Flash Media Interactive Server. It's only disadventage is, that it's quite expensive - but it's worth it's price, believe me.
If you don't want to pay for it, you can also use a free and open source Red5 server. If it's only the "text-chat based" functionality you want to implement, with a typical video streaming, this one should be enough for you. Although, there could be some problems waiting for you if you wanted to create a full video-chat based application. Take a look at the FMS vs Red5 comparision, which maybe will help you decide - http://www.riafreaks.com/. On the first page of this URL there will be an article I'm talking about covering this topic, as well as a sample guide on how to connect FMS to PHP code, which will let you work with any database you want.
To be honest, if I understood your problem correctly, than Red5 should be enough for you. It works great with Shared Objects, it's free, and it gives you the whole Java API server side - so you can connect to the database very easily. And it also let's you create and manage Shared Objects client side, as well as server side. Although, believe me that even if you're not a Java developer yourself, you won't have to write even a single line of server side code. You can create, update and destroy Shared Objects using only your Flex clients - it'll suite all your needs in the context you've written.

Similar Messages

  • RTMPS remote shared object response failure

    Hi i have a chat application written in Flex/Flash (AS3) with a PHP/mysql backend and i am using Adobe® Flash® Media Server 4.5.2
    The application is working OK in the night with under 200 rtmps connections but during the day with max 400 rtmps connections i get a strange error
    when i am trying to connect to the remote shared object.
    For example i have this portion of code:
    test_so is my shared object
    conn is my connection with the fms server
    test_so = SharedObject.getRemote("test_so","rtmps://uri to my application instance",false);
    test_so.addEventListener(SyncEvent.SYNC,mySyncFunction);
    test_so.connect(conn);
    The shared object synchronization is starting, when i receive the first data with the test_so shared object i get a failure that does not raise any event on the flash part.
    For example if my received data content length is 40Kb long i receive only 28Kb and the transfer is aborted but the rtmps connection is not closed.
    Using some web debugging software (charles and fiddler) i can see when the error appear:
    [https://application instance uri] (content-type: application/x-fcs)
    /open
    - 1
    /idle
    - ID
       - 0 (1 B)
       - 3 (9.95 KB)
       - 6 (28KB) <-- Failure SSL peer shut down incorrectly (Response code 200) (content length is almost 40KB but i only get 28KB then transfer is ended) (NetStatusEvent does not fire any error in flash)
       - 7 (1 B)
       - ... the rtmps connection continue but the flash will never receive any SyncEvent.SYNC because of the error on chunk 6
    /send
    - ID
       - 1
       - 2
       - 4
       - 5
    Here is a screeshot from charles during debug:
    This error appear random but for a lot of clients.
    In the FMS logs i do not see any errors.
    The server is a XEN VPS with 4 cores and 8GB of ram.
    The CPU and ram usage is constant, there are no spikes when the error appear.
    The bandwidth usage is more then double when the error appear.
    The remote shared object is a little big (over 40K) and maybe combined with the bandwidth problems can raise this error.
    I can also reproduce this error when there is little traffic on the server using a bandwidth limiter on client side and setting the limit at 64kb. (i need to put the limit at 128kb for the application to work and to not see that error)
    Maybe someone had the same problem.

    Hi i have a chat application written in Flex/Flash (AS3) with a PHP/mysql backend and i am using Adobe® Flash® Media Server 4.5.2
    The application is working OK in the night with under 200 rtmps connections but during the day with max 400 rtmps connections i get a strange error
    when i am trying to connect to the remote shared object.
    For example i have this portion of code:
    test_so is my shared object
    conn is my connection with the fms server
    test_so = SharedObject.getRemote("test_so","rtmps://uri to my application instance",false);
    test_so.addEventListener(SyncEvent.SYNC,mySyncFunction);
    test_so.connect(conn);
    The shared object synchronization is starting, when i receive the first data with the test_so shared object i get a failure that does not raise any event on the flash part.
    For example if my received data content length is 40Kb long i receive only 28Kb and the transfer is aborted but the rtmps connection is not closed.
    Using some web debugging software (charles and fiddler) i can see when the error appear:
    [https://application instance uri] (content-type: application/x-fcs)
    /open
    - 1
    /idle
    - ID
       - 0 (1 B)
       - 3 (9.95 KB)
       - 6 (28KB) <-- Failure SSL peer shut down incorrectly (Response code 200) (content length is almost 40KB but i only get 28KB then transfer is ended) (NetStatusEvent does not fire any error in flash)
       - 7 (1 B)
       - ... the rtmps connection continue but the flash will never receive any SyncEvent.SYNC because of the error on chunk 6
    /send
    - ID
       - 1
       - 2
       - 4
       - 5
    Here is a screeshot from charles during debug:
    This error appear random but for a lot of clients.
    In the FMS logs i do not see any errors.
    The server is a XEN VPS with 4 cores and 8GB of ram.
    The CPU and ram usage is constant, there are no spikes when the error appear.
    The bandwidth usage is more then double when the error appear.
    The remote shared object is a little big (over 40K) and maybe combined with the bandwidth problems can raise this error.
    I can also reproduce this error when there is little traffic on the server using a bandwidth limiter on client side and setting the limit at 64kb. (i need to put the limit at 128kb for the application to work and to not see that error)
    Maybe someone had the same problem.

  • Load balancing remote shared object?

    Has anyone had experience keeping the Remote Shared Object in
    sync between multiple FMS servers for load balancing purposes? I'm
    thinking in terms of being able to push an SO change to one and
    have the others stay in sync.

    I made it use localhost as the path to the .swf so you might
    want to change the net connection uri property to the application
    directory if you are testing on a webhosts domain.
    [/code]
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp:/myDomain/mySwf");
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);
    my_so.connect(my_nc);
    my_so.data.aString = "a testing string";
    /// making sure it's saved.
    //I can see it fine now
    trace(my_so.data.aString);
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp:/myDomain/mySWF");
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);
    my_so.connect(my_nc);
    trace(my_so.data.astring);
    [/code]

  • Director Flash 8 xtra breaks shared object and onSync

    This one has driven me insane for days, but at least now I
    know what the problem is. It's really a Director-Flash8 xtra-FMS
    problem, but I figure the best chance for a solution is posting it
    here.
    The problem is this: The Director Flash 8 xtra update messes
    up remote shared object connections to FMS applications. The
    Management Console debugger does not show any SO properties ("no
    data"), and only the "clear" onSync event fires. The old Flash 7
    xtra worked/works fine. To illustrate, I've tested the following
    code in the Director message window with both the v8 and v7 xtra
    (if you know Actionscript and not Lingo, it's still easy to figure
    out what happens here). It basically creates and connects a remote
    shared object on FMS:
    rrr = newObject("SharedObject")
    nnn = newObject("NetConnection")
    sss = "rtmp:/apptest01" -- app on locally running FMS
    er = nnn.connect(sss)
    put er
    -- 1
    fff = rrr.getRemote("tester", nnn.uri, true)
    put fff
    -- <flash object>
    er = fff.connect(nnn)
    put er
    --1
    -- so it's all good until here. onSync callback works with
    "clear", etc, but...
    fff.data.foo = 55.5
    put fff.data.foo
    -- 55.5... but only shows in Mgmt Console when using the v7
    xtra...
    -- when using the old flash7 xtra,
    -- debugging the FMS app and onSync events works correctly,
    -- but when using flash8 xtra,
    -- debugging the FMS app shows "no data" for this shared
    object. foo = 55.5 should be there.
    -- also, onSync events no longer fire after the initial
    "clear".
    If I translated this into actionscript and ran it in Flash 8
    vs Flash 7, etc, would I get the same problem? I'll try that next,
    but it took me a while to get this far. Is it simply a matter of
    permission or firewall setting? Or is it something just broken with
    the Director flash 8 xtra?
    Thanks

    As of just last week, Adobe can replicate the problem and is
    "working on it". I don't anticipate a shockwave-flash-xtra update
    to come out of this, but perhaps they can identify some other
    work-around. If you can avoid using "success" onSync events and
    don't need shared object debugging, then FMS works with
    Director/Flash 8 xtra... but this may be a symptom of yet more bugs
    that I haven't seen.
    I'm stopping development on my FMS/Director project until
    this is resolved... I may need to crack open the old Multi User
    xtra.

  • Losing Connection to Remote Shared Object

    Hello,
    For some reason, and at random intervals, I lose connection to my Remote Shared Object. When it first loads, the data loads up A-ok. However, after 5 minutes, I lose connection to the FMS entirely and a error isn't thrown up at all.
    At the same time I have another net connection to a live stream, it never loses connection. I'm looking for some direction, and ideas on what could be the issue. See below:
    import com.ambient.classes.AmbientUserData;
    [Bindable]public var Branding_so:SharedObject;
         public function init():void
                  Application.application.lblLoading.text = "Initializing, Please Wait...";
                  AmbientUserData.AmbientServer1();
                  AmbientUserData.nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                  AmbientUserData.AmbientServer2();           
         public function netStatusHandler(e:NetStatusEvent):void
                 //mx.controls.Alert.show(e.info.code + tFlag);
                 switch (e.info.code)
                         case "NetConnection.Connect.Success":
                        Application.application.lblLoading.text = "Connected.";
                        initRSO();                                                  
                        break;
                        case "NetStream.Play.StreamNotFound":
                        break;
                        case "NetConnection.Connect.Closed":
                        mx.controls.Alert.show('Connection Lost');
                        break;
                        case "NetConnection.Call.Failed":
                        mx.controls.Alert.show('Connection Failed.');
                        break;
         public function initRSO():void
              Application.application.lblLoading.text = "Loading Server Side Components...";    
              // Colors Tab
              Branding_so = SharedObject.getRemote("bgColor1",  AmbientUserData.nc.uri, true); // 1
              Branding_so = SharedObject.getRemote("bgColor2",  AmbientUserData.nc.uri, true); // 2
              Branding_so = SharedObject.getRemote("txtColor",  AmbientUserData.nc.uri, true); // 3
              Branding_so = SharedObject.getRemote("layoutID",  AmbientUserData.nc.uri, true); // 4
              Branding_so.addEventListener(SyncEvent.SYNC,rsoHandler);         
              Branding_so.connect(AmbientUserData.nc);     
              Application.application.lblLoading.text = "Complete.";        
    public function rsoHandler(e:SyncEvent):void
              Application.application.controlAmbientControl.currentState = Branding_so.data.layoutID;
              Application.application.setStyle("backgroundGradientColors", [Branding_so.data.bgColor1, Branding_so.data.bgColor2]);
              Application.application.setStyle("color", Branding_so.data.txtColor);

    Hi
    has this only started happening? if you open the rdp session on the secondary screen and then maximise it does the same happen?
    Any errors in your log files? 
    maybe this helps:
    http://superuser.com/questions/744808/why-did-remote-desktop-performance-drop-when-switching-from-windows-server-2012r
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Remote Shared Objects peerIDs

    Hello All, I would like to use a remote shared object to communicate to nearID. My knowledge of Server-Side ActionScript is not particularly great. Is there any tutorials or links out there that can give a demonstration how remote shared objects can obtain and distribure peerIDs? 
    Thank You

    Thank you Rajesh. Apologies for my late reply. Are you suggesting I do something like this? In the code below I have included a changeList array to describe the change properties of each member in a remote shared object. Furthermore, I have created so.data property to store attributes of the rso when a user changes one of the slots it triggers the syncEvent. Can someone please take a good close look at my code to see if you can identify any errors? thanks in advance.
    function syncExample(event:SyncEvent):void{
         my_rso.data.username1;
         my_rso.data.username2;
         my_rso.data.username3;
         my_rso.data.username4;
         my_rso.data.username5;
    for (var i = 0; i <changeList.length; i++){
    var changeList:Array = event.changeList;
    var info:Object;
    info = changeList[i];
    switch(info.code){
       case "success"
      lient_info = my_rso.data[info.name];
       case "change":
       client_info = my_rso.data[info.name];

  • How can I delete remote shared objects?

    Hello world...
    I have a problem...
    I need to unload an external .swf file or delete all the remote shared objects that it conteins...but I need to reload the same .swf file by pushing a button...
    Please help me...
    Emiliano.

    Hi,
    can you please give clear idea...
    It looks like when the namespace was deleted delete all objects under this namespace was systematically deleted.
    means all objects under namespace is already deleted before deleting namespace..right?
    If so then Now there are existing interface objects somewhere out there in the IR. Objects such as data types, message type, message mapping and interface mapping objects
    Try to clear your cache..using SXI_CACHE...
    Try to  re-create namespace and delete all objects related to your namespace and delete namespace again...( Not sure this wull help..but u can try)
    Nilesh

  • Snap shot remote shared object question

    HI I'd like to take a snapshot of video from a webcam and
    then store that snapshot either as a file or as an object in a
    remote shared object anybody know how that can be accomplished? I
    also need to know how to store a picture in a remote shared object
    ...the picture in this case is being brought into flash using
    loadMovie.

    If you're using loadMovie, you need to extract an image from
    the recorded flv file. FFMPEG does this quite nicely.
    About the use of the sharedObject, you can use it to
    store/sync the location of the image file, but you couldn't store
    the image itself in the SO (well... you could, but you'd have to
    break it down to pixel data and that would make for an awfully big
    SO).

  • Understanding remote shared objects

    Hi Fellow users, I am using a remote shared object in my Flash Media Server project for the first time. My purpose of using a rso is to update data in real-time accross multiple clients.
    Ok, I like to store a list of users who are connected to my application. And when a client disconnects I want the object updated to all other clients connected and the online status list is revised.
    I dont know what the best approach is for this... Is it possible to use the onSync event?  And put the clients in an array and when their properties are changed the server is dispatched and updated. Or, would you recommend other alternatives?
    Interested to hear your thoughts and opinions guys.
    Thanks

    Thank you Rajesh. Apologies for my late reply. Are you suggesting I do something like this? In the code below I have included a changeList array to describe the change properties of each member in a remote shared object. Furthermore, I have created so.data property to store attributes of the rso when a user changes one of the slots it triggers the syncEvent. Can someone please take a good close look at my code to see if you can identify any errors? thanks in advance.
    function syncExample(event:SyncEvent):void{
         my_rso.data.username1;
         my_rso.data.username2;
         my_rso.data.username3;
         my_rso.data.username4;
         my_rso.data.username5;
    for (var i = 0; i <changeList.length; i++){
    var changeList:Array = event.changeList;
    var info:Object;
    info = changeList[i];
    switch(info.code){
       case "success"
      lient_info = my_rso.data[info.name];
       case "change":
       client_info = my_rso.data[info.name];

  • Populating a Combobox using Remoting with AMF and PHP

    Hello all
    I am using Zend framework and Flex 3.4 to create a webapp. I am stuck at how to populate a combobox dynamically using the service I created in PHP.
    In some of examples I saw that result of database query was being converted into XML and then sent to Flex. This seems a little too time-consuming if I have to do it every time. I saw some examples in Adobe Docs about Remoting with AMF and PHP. That seems like a better approach although how it would be applicable here is beyond me right now.
    Can somebody guide me in correct direction?
    Thanks and Regards
    Shivik

    Try this: http://code.google.com/p/as3flexdb/ is very easy to use and it
    will help.
    All you need to populate a combo is:
    <mx:ComboBox dataProvider="{query.Records} /

  • Having problem displaying remote shared objects on flash

    hi
    I am using red5 flash server and at that side creating a shared object called chatSharedObject
    For the client side,I am using openlaszlo platform, but using actionscript 3  classes for the shared object implementation. cilent application is connecting to the shared object on the red5 side successfully(as I see on the red5 logs).
    here is the calling code snippet:
    [CODE]
    <button id="sendButton">send
          <handler name="onclick" method="sendClicked" />
          <method name="sendClicked" args="v=0">
            if (message.text != "") {
        //Debug.write("Message sent!");
        classroot.writeSharedObject(message.text); 
        message.clearText();
        message.setAttribute("text_y", 0);
        </method>
    </button>
    <method name="writeSharedObject" args="message">
    [B]//shared object send method is being called[/B]
        this.send("writeMessage",loginScreen.getUsername(),message);
    </method>
    <!--this method writes the messages to the debug window which will be shown to all users-->
    <method name="writeMessage" args="username, msg">
        //Debug.debug(msg);
        messageArea.addText(username+ " : "+msg+"\n");
    </method>[/CODE]
    When I generate the flash object and try to use this application, nothing is being displayed although there is no problem on this issue on the development enviroment. Problem causes when I try to run the swf10 flash object.
    Is this maybe a flash security issue? Although I have added the corresponding locations as the trusted location on the flash settings manager. Still problem goes on. And I think this is not about the flash player, it might be a special problem about the flash object.
    Couldn't find the solution for a week,
    Any help would be appreciated.
    Thanks in advance 
    Cem

    i can even gointo firefox and chrome and save the shared object. then open my i.e and see that object in the results page. but if i save the shared object in i.e it throws that error on the results page. So i'm pretty sure it must be the flushing of the object. Pasting my save code below:
    function makeResult(evt:MouseEvent):void{
          var flushstatus:String = new String();
          gSo.data.o = o;
          gSo.data.c = c;
          gSo.data.t = t;
          gSo.data.c = v;
          gSo.data.u=uid;
          flushstatus = gSo.flush();
          if (flushstatus != null) {
            switch (flushstatus) {
              case SharedObjectFlushStatus.PENDING: //this is incase the user doesnt have enough space
                gSo.addEventListener(NetStatusEvent.NET_STATUS, onFlushStatus);
                break;
              case SharedObjectFlushStatus.FLUSHED:
                redirect();
                break;
    function onFlushStatus(event:NetStatusEvent):void {
      switch (event.info.code) {
        case "SharedObject.Flush.Success":
          gSo.removeEventListener(NetStatusEvent.NET_STATUS, onFlushStatus);
          redirect();
          break;
        case "SharedObject.Flush.Failed":
          trace ("Shared object storage failed");
          break;
    function redirect() {
      try{
        var request:URLRequest = new URLRequest('../node/2');// i supply a base parameter to the swf so the redirect works
        navigateToURL(request,"_self");
      catch(error:Error){
        trace ("Redirect failed");

  • Shared object and different application servers - how to resolve this issue

    Dear SDN Members,
    We are occuring a big problem. We create a shared object in a program and after we call in an another one. In central system architecture, it is working well. But on a distributed architecture (4 application servers), we have a dump some times. In fact, the read of the shared object can be occured in the AS 4 but the share object has been created in AS1.
    How to manage this problem to avoid this dump ?
    Dupplicate the shared object in the application servers ?
    Encapsulate different calls with RFC link to only one AS ?
    Any parameters on server or share objects ?
    Thanks a lot for your help,
    Points will be given to right or good answers.
    Br,
    Aurélien

    What is the dump you are getting ?
    AFAIK, "Shared Memory"(SHM) is an area defined in the app server. I am not sure if you can access SHM of a different app server (as in your case trying to access SHM of AS1 from AS4). [http://help.sap.com/abapdocu_70/en/ABENSHARED_MEMORY_GLOSRY.htm]
    In this case you can opt for "DataBase Clusters". Relevant ABAP statements: [IMPORT|http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@]/[EXPORT|http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#!ABAP_ALTERNATIVE_4@4@] FROM/TO DATABASE.
    Hope this helps.
    BR,
    SUhas

  • Shared Objects and IOS 5.0+

    So, I need a straight answer. Can I use Shared Objects for my game, or will apple fail me for using them?  Will Shared Objects be backed up with iCloud?
    Thanks,
    diss.

    Boat,
    From what I have found if your IPA/APK/SWF is the same name then shared objects data should retain.
    So if version 1 of your app was
    AppleApp.ipa published from a swf by the name of AppleApp.swf
    then when you update on your final publish save your swf and .ipa under the same name
    Dont do this
    First version is
    AppleAppV1.swf published out to AppleApp.ipa
    Second version is AppleAppV2.swf published out to AppleApp.ipa
    The swf is what the shared object is associated with so keep that the same from update to update.

  • How can I move two figures on the stage with remote shared object?

    Hi, I have a problem...
    I need to move two figures on the stage with shared object like the "Tutorial shared Object ball" on the adobe website but with more than one figure. All the client must see the figures moving. The figure are a circle (Cerchio) and a square (Quadrato).
    Help me, please. This is the script:
    package
      import flash.display.Sprite;
      import flash.net.SharedObject;
      import flash.events.NetStatusEvent;
      import flash.events.SyncEvent;
      import flash.net.NetConnection;
      import flash.events.MouseEvent;
      import flash.display.MovieClip
      //import flash.net.ObjectEncoding;
      public class BlocchiLogici extends Sprite
            private var pointer_so:SharedObject;
            private var pointer1_so:SharedObject;
            private var nc:NetConnection;
            private var good:Boolean;
            private var Cerchio:cerchio;
            private var Quadrato:quadrato;
            private var Rettangolo:rettangolo;
            private var Triangolo:triangolo;
            public function BlocchiLogici()
                 //NetConnection.defaultObjectEncoding=flash.net.ObjectEncoding.AMF0;
                 //Connect
                 var rtmpNow:String="rtmp://192.168.1.66/BlocchiLogici";
                 nc=new NetConnection  ;
                 nc.connect (rtmpNow);
                 nc.addEventListener (NetStatusEvent.NET_STATUS,doSO);
                 Cerchio=new cerchio ;
                 addChild (Cerchio);
                 Cerchio.x=50;
                 Cerchio.y=200;
                 Cerchio.addEventListener (MouseEvent.MOUSE_DOWN,beginDrag);
                 Cerchio.addEventListener (MouseEvent.MOUSE_UP,endDrag);
                 Quadrato=new quadrato ;
                 addChild (Quadrato);
                 Quadrato.x=100;
                 Quadrato.y=200;
                 Quadrato.addEventListener (MouseEvent.MOUSE_DOWN,beginDrag);
                 Quadrato.addEventListener (MouseEvent.MOUSE_UP,endDrag);
            private function doSO (e:NetStatusEvent):void
                 good=e.info.code == "NetConnection.Connect.Success";
                 if (good)
                       //Shared object
                       pointer_so=SharedObject.getRemote("point",nc.uri,false);
                       pointer_so.connect (nc);
                       pointer_so.addEventListener (SyncEvent.SYNC,doUpdate);
            private function doUpdate (se:SyncEvent):void
                 for (var cl:uint; cl < se.changeList.length; cl++)
                       trace(se.changeList[cl].code);
                       if (se.changeList[cl].code == "change")
                           if (Cerchio)
                            switch (se.changeList[cl].name)
                                 case "xpos" :
                                       Cerchio.x=pointer_so.data.xpos;
                                       break;
                                 case "ypos" :
                                       Cerchio.y=pointer_so.data.ypos;
                                       break;
                        else if (Quadrato)
                               switch (se.changeList[cl].name)
                                 case "xpos" :
                                       Quadrato.x=pointer_so.data.xpos;
                                       break;
                                 case "ypos" :
                                       Quadrato.y=pointer_so.data.ypos;
                                       break;
            private function beginDrag (e:MouseEvent)
                if (Cerchio)
                     Cerchio.addEventListener (MouseEvent.MOUSE_MOVE,moveMc);
                     Cerchio.startDrag ();
                else if (Quadrato)
                     Quadrato.addEventListener (MouseEvent.MOUSE_MOVE,moveMc);
                     Quadrato.startDrag ();
            private function endDrag (e:MouseEvent)
                if (Cerchio)
                     Cerchio.stopDrag ();
                else if (Quadrato)
                     Quadrato.stopDrag ();
            private function moveMc (e:MouseEvent)
                e.updateAfterEvent ();
                if (Cerchio)
                     pointer_so.setProperty ("xpos",Cerchio.x);
                     pointer_so.setProperty ("ypos",Cerchio.y);
                else if (Quadrato)
                     pointer_so.setProperty ("xpos",Quadrato.x);
                     pointer_so.setProperty ("ypos",Quadrato.y);
    I need of a server side file?
    Thanks.

    I solved it!!
    I duplicated the script....
    It's work perfectly..
    Emiliano.

  • Local Shared Objects and multiple SWFs: mutexes necessary?

    I will have multiple SWFs on a single web page, each reading
    and writing the same SharedObject, which may be up to 100K in size.
    Will I need to create some sort of mutex scheme to ensure that one
    SWF isn't writing while another is reading, or do all SWFs on a
    page essentially run as a single-threaded application?

    >1) I don't think a SharedObject.flush is synchronous.
    I believe it is, as long as you're not attempting to write
    more data than the user has set for the Local Storage limit.
    http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html#flush()
    You'll note that flush is described this way: "Immediately
    writes a locally persistent shared object to a local file", and if
    it returns "SharedObjectFlushStatus.FLUSHED" that means that "The
    shared object has been successfully written to a file on the local
    disk". So I'd say that the normal operation of flush() is
    synchronous. However, the SharedObjectFlushStatus.PENDING state
    means that we've exceeded the limit set by the user, and are
    waiting for them to allow or disallow it. I believe (strongly) that
    that's the only case in which a netStatus event is sent.
    Do you read this differently?
    As far as multiple SWFs running as cooperative or preemptive
    multitasking processes, I'd really like to know the answer, but it
    probably doesn't matter. The more I read and think about this, the
    more it seems to me that Adobe has to prevent simultaneous reads
    and writes to a single Shared Object from taking place, as one use
    of it that I've read about is to share data between SWFs. For
    example:
    http://www.devarticles.com/c/a/Flash/Communication-and-Security-with-the-Flash-Communicati on-Server/1/

Maybe you are looking for