Timing issues can make communicating with the loaded swf tricky.  Here
is a full example, built on the one in the docs, that shows how to
handle this.

 

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=690

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, September 24, 2007 2:14 PM
To: [email protected]
Subject: RE: [flexcoders] Re: Open SWF from another SWF.

 

A shell app would look something like:

 

<mx:Application ....>

            <mx:SWFLoader source="someapp.swf" />

            <mx:SWFLoader source="someapp2.swf" />

</mx:Application>

 

Use of TabNavigator/ViewStack, the visible property and other logic
should make it look like your HTML app?

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of helix206
Sent: Monday, September 24, 2007 12:38 AM
To: [email protected]
Subject: [flexcoders] Re: Open SWF from another SWF.

 

Can you please explain a bit more? Whats a shell app?

Thanks.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You can't use a shell app with SWFLoader?
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of helix206
> Sent: Saturday, September 22, 2007 4:04 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Open SWF from another SWF.
> 
> 
> 
> Ok, i have tryed this with fscommand("exec", "test.exe"); and it 
works, 
> all SWF files must be projectors.
> 
> Now i have 2 problems, the projector test.exe witch is an 
application 
> runs fine when run directly, but when i execute it from my first 
> projector (runner.exe) the second test.exe wont read any XML files 
with 
> HTTPRequest method, i get an error that it cant find the file. 
> 
> I examined the path to the XML file and it changes if called from 
> another projector from :
> 
> URL: file:///G <file:///\\G>  <file:/// <file:///\\> \\G>
|/Directory/fscommand/myXML.xml"]. 
> 
> to :
> 
> URL:file:////3F/G <file:///\\3F\G>  <file:/// <file:///\\> \\3F\G> 
|/Directory/fscommand/myXML.xml"]. 
> 
> Any way to fix that?
> 
> And another Q, when creating projectors, now i can create them with 
> file->Create Projector. Is there a way to create them from command 
line 
> because all my apps are in full screen and i have blocked the ESC 
> button. Btw, if anyone is interested i blocked ESC button with : 
> fscommand("trapallkeys","True");.
> 
> I hope someone can help.
> 
> thx.
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> , "helix206" <oputarek@> wrote:
> >
> > I have a problem. I have several local SWF files built for a 
> > client,all run in full screen, and all are seperate applications. 
Now 
> > the client wants one unique window for running all thiose apps. 
> > 
> > Is it even possible to call and open SWF application from another 
SWF 
> > application. 
> > 
> > thx.
> >
>

 

Reply via email to