what is deal with writing persistent server-side shared objects with  
AMF3 object encoding?

fair enough, in FMS3 everything should be server-side scripts, but why  
can't I flush it?

Language reference says I could,  but how!?
http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=Book_Part_34_ss_asd_1.html

//an simple example that should work!!!
//main.asc
application.onAppStart = function()
{
     trace("I'm ok");
     myShared = SharedObject.get("server_so", true);
};

application.onConnect = function(client)
{
     var varName;
     application.acceptConnection(client);


     client.storeIt = function(dataNow)
     {
         myShared.setProperty(varName, dataNow);
        
        //myShared.lock();
        
        myShared.flush();
        //nor  SharedObject.flush();

        //myShared.unlock();
        
        //light please!
}

      client.setVarName = function(aVar)
     {
           trace('aVar: '+aVar);
           varName = aVar;
           trace('setVarName: '+varName);
     };
};

can someone throw some light please

cheers

Reply via email to