Shared objects?
  ----- Original Message ----- 
  From: yiğit boyar 
  To: [email protected] 
  Sent: Friday, February 15, 2008 3:41 PM
  Subject: Re: [flexcoders] Re: passing variables between two consecutive flex 
applications


  actually it does no work :(
  i can store value to a cookie vie external interface and read in the other 
application;
  but when i try to save xml data, since the way to keep cookies via javascript 
is really weak, it does not work :(
  i need to make too many escape character control and to make it robust will 
be diffucult; so I better find another way.

  i think i will have to add server side help :(

  any hope?


  On Fri, Feb 15, 2008 at 4:38 PM, yigit <[EMAIL PROTECTED]> wrote:


    sorry, i need to be more clear;
    the user navigates from application A to application B. so all js object
    are cleared, and two applications can not talk via localconnection
    because they are not running at the same time.

    by the way, an idea came to my mind right now, i can use external
    interface, set cookies via javascript then navigate to the other page
    and read values again with external interface; but actually i did not
    like it (wish it works)

    but any other solution?

    by the way, aduston, thanks.

    aduston1976 wrote On 02/15/2008 04:22 PM:

    >
    > 1. Use LocalConnection -- see the API doc at
    > http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
    > <http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html>
    >
    > 2. Use ExternalInterface to write your xml string to a variable
    > attached to javascript window -- see
    > 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=19_External_Interface_178_3.html
    > 
<http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=19_External_Interface_178_3.html>
    > and http://developer.mozilla.org/en/docs/DOM:window
    > <http://developer.mozilla.org/en/docs/DOM:window> , or read a book
    > about javascript.
    >
    > --- In [email protected]

    > <mailto:flexcoders%40yahoogroups.com>, yigit <[EMAIL PROTECTED]> wrote:
    > >
    > > hi all,
    > > i have 2 sperate flex applications (say A B),
    > > the user first uses A, then B; and A has to pass an XML file to B.
    > >
    > > i just could not find a way to pass the xml. it is long so i can not
    > use
    > > GET method (so Application.application.parameters) and i do not want to
    > > use a server side script to pass xml using flashvars. (i do not want to
    > > code any server side! )
    > > i tried SharedObject.getLocal method, but although i serve them from
    > the
    > > same domain, they can not reach each others data. (in the help it says
    > > they can, but i could not make it work)
    > >
    > > so, any other solutions ?
    > >
    >
    > 



   

Reply via email to