Re: [flexcoders] Re: Loading swf in child window?

2010-03-25 Thread Alex Harui
By Window do you mean browser window?  You can only talk to another browser 
window via LocalConnection


On 3/24/10 7:37 AM, newflexer d...@lexmark.com wrote:






Thanks...anyone ever tried it?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
valdhor valdhorli...@... wrote:

 I believe that it's possible to do what you want but I have never tried it.

 What I would do is implement modules and an interface so that the main app 
 and modules can exchange data.

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 newflexer dhay@ wrote:
 
  We need to be able to open a window from our main application, in which we 
  want to load a swf file to perform some configuration for the content in 
  the main application.  We also need to be able to pass the information from 
  the child window to the main app.
 
  Is this possible?  Any pointers?  What container would we use for the child 
  window?  How do we load it?  How do you pass the data from child to main 
  app?
 
  thanks!
 
  David
 







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Loading swf in child window?

2010-03-24 Thread valdhor
I believe that it's possible to do what you want but I have never tried it.

What I would do is implement modules and an interface so that the main app and 
modules can exchange data.

--- In flexcoders@yahoogroups.com, newflexer d...@... wrote:

 We need to be able to open a window from our main application, in which we 
 want to load a swf file to perform some configuration for the content in the 
 main application.  We also need to be able to pass the information from the 
 child window to the main app.
 
 Is this possible?  Any pointers?  What container would we use for the child 
 window?  How do we load it?  How do you pass the data from child to main app?
 
 thanks!
 
 David





[flexcoders] Re: Loading swf in child window?

2010-03-24 Thread newflexer
Thanks...anyone ever tried it?

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I believe that it's possible to do what you want but I have never tried it.
 
 What I would do is implement modules and an interface so that the main app 
 and modules can exchange data.
 
 --- In flexcoders@yahoogroups.com, newflexer dhay@ wrote:
 
  We need to be able to open a window from our main application, in which we 
  want to load a swf file to perform some configuration for the content in 
  the main application.  We also need to be able to pass the information from 
  the child window to the main app.
  
  Is this possible?  Any pointers?  What container would we use for the child 
  window?  How do we load it?  How do you pass the data from child to main 
  app?
  
  thanks!
  
  David
 





RE: [flexcoders] Re: Loading swf in child window?

2010-03-24 Thread Tracy Spratt
If I am understanding correctly you will want to use SWFLoader.  It allows
you to load pretty much any swf.  Normally the swf's must be compiled with
the same version of AS, because if the two swfs run in different virtual
machines, they will only be able to communicate via LocalConnection.

 

You typically use SWFLoader when the swf you want to load is a complete
application.  those are big, because they include so much of the framework.
If your swf is not a full application, you can use modules.  The primary
value of both is that the loaded thing does not need to be compiled into the
loading app.

 

I have loaded applications into applications very often, with several apps
in production for years and it works extremely well.  All those apps were
intranet apps on fast, wired networks, so swf size was not a critical
constraint.

 

Communication with the loaded swf is simple via a reference to the .content
property.  However, there are some timing issues to handle, because the
complete event of the swf loader does not mean that the application being
loaded is also complete.  Here is a sample application that demonstrates
this communicatin setup:
http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of newflexer
Sent: Wednesday, March 24, 2010 10:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Loading swf in child window?

 

  

Thanks...anyone ever tried it?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
valdhor valdhorli...@... wrote:

 I believe that it's possible to do what you want but I have never tried
it.
 
 What I would do is implement modules and an interface so that the main app
and modules can exchange data.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
newflexer dhay@ wrote:
 
  We need to be able to open a window from our main application, in which
we want to load a swf file to perform some configuration for the content in
the main application. We also need to be able to pass the information from
the child window to the main app.
  
  Is this possible? Any pointers? What container would we use for the
child window? How do we load it? How do you pass the data from child to main
app?
  
  thanks!
  
  David