|
Ok it works in our QA
environment.
In both appA.mxml and appB.mxml
I specified (I will obviously change this):
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
However appB.mxml, which is
loaded within appA.mxml, is all streched out and takes up more space than
the specified boundries. Looks really weird. Guess I have another problem to
tackle now.
I think everything you guys
told me to do was obviously correct, but wasn't working earlier because of my
network config. My PC (where appA.mxml is running), is on a different network
segment than the DEV server where appB.mxml is running from. Perhaps this has an
effect, because everything should have worked.
Thanks to Peter and
Jester!
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
From: Peter Farland [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 4:54 PM To: [email protected] Subject: RE: [flexcoders] SWFs and domains (I understand you may need a web app with the default
context root "" to have a file at such a
location) From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, May 12, 2005 4:42 PM To: [email protected] Subject: RE: [flexcoders] SWFs and domains 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: [email protected] 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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, May 12, 2005 2:23 PM To: [email protected] 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: [email protected] 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 Peter Farland
- RE: [flexcoders] SWFs and domains Dimitrios Gianninas

