Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 06:29
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash MX 2004 (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Andresss, papachan)
| | |-+  Cross domain
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Cross domain  (Read 3475 times)
Flashme
Server what's that
*
Posts: 4


View Profile Email
« on: 01/07/09, 10:06 »

Need a little help,

From the main movie I'm loading another movie into _level1 which needs to access xml data from another domain. Of course it works in the Authoring enviornment but not uploaded onto the host. I've tried numerous corossdomain.xml which I've had no luck which leads me to believe that the problem exists between keyboard and chair. I think the problem is I'm not calling the crossdomain.xml file from the correct .swf or it could be another problem. Jorge has helped me with other problems in the past or if anyone else has some suggestions I would be one dang happy amatuer.

Thanks
« Last Edit: 01/07/09, 12:01 by Flashme » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 01/07/09, 12:01 »

Try using a log to get meaningfull error message: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_05.html

Jorge
Logged

Flashme
Server what's that
*
Posts: 4


View Profile Email
« Reply #2 on: 01/07/09, 16:28 »

Hi Jorge,

I've tried that and not receiving any error's. The problem is I'm way out of my league with cross domain, System.security, socket and so on. Everything I've read about it makes about as much AS sense to me as sending a Rover to Mars.

Maybe you can direct me to a step by step tutorial or a book on the subject.
Something with baby steps. Obviously it's a player security issue that I absolutely have no experience dealing with.

Thanks for your time.

Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #3 on: 01/08/09, 06:04 »

A general "allow all" looks like this:

Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*" to-ports="*" secure="true" /> 
  <!-- 
 This domain can accept any header from a SWF file on any subdomain of example.com and supports https requests 
  --> 
  <allow-http-request-headers-from domain="*" headers="*" secure="true" /> 
</cross-domain-policy>

You can read http://www.senocular.com/pub/adobe/Flash%20Player%20Security%20Basics.html , then follow the links there

Jorge
Logged

Flashme
Server what's that
*
Posts: 4


View Profile Email
« Reply #4 on: 01/08/09, 23:14 »

Jorge your the best. I've been been working on this for 2 day's and created an entire new AS dictionary. Unfortunately not one of them work.

Thanks a million!
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything