There is:
appB.mxml loads the
cross domain file by doing.... System.security.loadPolicyFile( "http://subB.bespin.com/contextB/jimmy.xml"
);
appA.mxml
has:
System.security.allowDomain( "*"
);
System.security.allowInsecureDomain(
"*" );
The jimmy.xml is located at the root
of the web
folder.
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
From: Peter Farland [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 4:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] SWFs and domains Where is the cross domain file specifically - (i.e. write
out the full path using your naming examples of subA and subB
below)?
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, May 12, 2005 2:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] SWFs and domains Thanks for the suggestions
Jester,
I removed the crossdomain.xml
and tried: System.security.allowDomain(
"*" );
Didn't
work.
Then I added a jimmy.xml which
is my personal crossdomain.xml file with the same content as what I mention
previously.
And then I added in appB.mxml:
System.security.loadPolicyFile( http://localhost:8200/contextB/jimmy.xml
);
Still doesn't
work.
Wouldn't happen to have
anything else up your sleeve?
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 1:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] SWFs and domains Have you tried:
- System.security.loadPolicyFile?
- System.allowDomain()?
----- Original Message -----
From: Dimitrios Gianninas
Sent: Thursday, May 12, 2005 1:39 PM
Subject: [flexcoders] SWFs and domains Hi,
I
know I have this question already, but maybe some help with someone with more
experience will help. Local I have the following setup:
Using the Loader component, appA can load
appB and then appB has something like this:
var user = _level0.user
This allows appB to retrieve the user model object from appA... works
like a charm.
Now, I deployed the same UIs as follows:
Now in this setup, appB loads within appA,
but the _level0.user returns "undefined". Also the movie doesn't loaded within
its predefined width and height (probably diff issue altogether). I was told to
add a crossdomain.xml file and I have: <cross-domain-policy>
<allow-access-from
domain="*"
to-ports="*"/>
</cross-domain-policy>
Still doesn't work... anything else I can
try?
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
Yahoo! Groups Links
|
- RE: [flexcoders] SWFs and domains Dimitrios Gianninas
- RE: [flexcoders] SWFs and domains Peter Farland
- RE: [flexcoders] SWFs and domains Dimitrios Gianninas