Title: Using SharedObject to communicate between two OPEN apps?

I thought I could set a value in a local SharedObject, call flush(), then, in another already open app, do getLocal() and access the value set in the first app.

But this is not working.  Flush() is returning true, but I do not see the new set and flushed value, unless I refresh the app.

Can I do this?  Or should I find another solution?  Below is the tiny sample app I am using to test with.

Tracy

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"

        initialize="initApp()">

<mx:Script><![CDATA[

        private var goLSO:SharedObject;

        private function initApp():Void{

                goLSO = SharedObject.getLocal("testlso", "/");

                tiLSOValue.text = goLSO.data.test1;

        }

       

        private function showLSOValue():Void{

                goLSO = SharedObject.getLocal("testlso", "/");

                tiLSOValue.text = goLSO.data.test1;

                alert("goLSO.data.test1 == " + goLSO.data.test1);

        }

       

        private function setLSO(event):Void

        {

                goLSO.data.test1 = tiLSOValue.text;

                goLSO.flush();

        }

]]></mx:Script>

        <mx:Button label="Show LSO Value" click="showLSOValue()"/>

        <mx:TextInput id="tiLSOValue" focusOut="setLSO()"/>

</mx:Application>



Yahoo! Groups Links

Reply via email to