Troubleshooting Flash Player Error 2048 (CROSS DOMAIN): Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
New page: Troubleshooting Flash Player Error 2048 (bron: http://www.flashplayerfixer.com/flash-player-error-2048.php) Specific error name: Error #2044: Unhandled securityError If you are experie...
 
No edit summary
Line 17: Line 17:


   2. On your current domain (domain.com) create a crossdomain.xml file - Ensure that it permits the domain you are trying to reference (in this example, domain2.com) to access your content.  A sample of code that may work is:
   2. On your current domain (domain.com) create a crossdomain.xml file - Ensure that it permits the domain you are trying to reference (in this example, domain2.com) to access your content.  A sample of code that may work is:


<pre>
<pre>

Revision as of 10:17, 25 March 2011

Troubleshooting Flash Player Error 2048 (bron: http://www.flashplayerfixer.com/flash-player-error-2048.php)


Specific error name: Error #2044: Unhandled securityError


If you are experiencing this error you likely A webmaster/developer trying to cross platform various components of your website - You have a file server as server A, your flash file located on server B, and a PHP script to manage everything on server C. All three of these servers "talk" to each other before submitting the final end-product to user A.


Fixing Flash Player Error 2048:

Assuming that you are attempting to cross-reference your domains for a reason, or are unable to locate all of the Flash content on a single server, try the following fix. If your Flash file, located at http://www.domain.com/flash.swf for example, is trying to access resources from another domain (domain2.com) it will automatically look for a file called playlist.xml on domain2.com. To get around this try the following:


  1. Save "flash.swf" on your own server.
  2. On your current domain (domain.com) create a crossdomain.xml file - Ensure that it permits the domain you are trying to reference (in this example, domain2.com) to access your content.  A sample of code that may work is:
   <?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="*.yourdomain.com" ></allow> 
   </cross-domain-policy> 


The code above allows yourdomain.com and all subdomains access. This code was taken from http://flowplayer.org/forum/1/16891. The code should be placed at http://yourdomain.com/crossdomain.xml

  3. Ensure that your XML file has been programmed correctly - Make sure your headers, etc. are correct so that there are no errors when trying to access the file.


If the above does not solve your problem you may also find useful information in the Adobe livedoc, located here: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000349.html


If you are still unable to cross-reference your domains you may want to simply place all of the information on a single server/domain to avoid this problem. Flash will not have to worry about permissions and security issues and your file may actually load faster. Unless you have a specific reason for cross-referencing, it's usually better to keep everything in one place.


Paul EDIT:

Van wip.tripnet.int naar -> tripany.com

1. maak een bestandje genaamd crossdomain.xml

2. gebruik de volgende 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="*.tripnet.int" ></allow-access-from> 
   </cross-domain-policy> 

3. plaats crossdomain.xml in de root van de site zodat hij te bereiken is als www.tripany.com/crossdomain.xml