> > i think i will have to add server side help :(
> > any hope?

1. Make the user navigate from one app to the other using javascript
rather than by requesting a new html page. You can use swfobject or
whatever for this. Then you can still use the ExternalInterface solution.
2. Use the server.

Those are your only options.

Adam

--- In [email protected], Joe <[EMAIL PROTECTED]> wrote:
>
> Id try a shared object.
> 
> http://learn.adobe.com/wiki/display/Flex/Shared+Objects
> 
> I have gotten it to communicate with a second browser before.
> 
> -Joe
> 
> On Fri, Feb 15, 2008 at 10:41 AM, yiðit boyar <[EMAIL PROTECTED]> wrote:
> 
> >   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 <yboyar@> 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 ?
> > > > >
> > > >
> > > >
> > >
> > >
> >  
> >
> 
> 
> 
> -- 
> -Joe
>


Reply via email to