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

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by one other user not shown)
Line 6: Line 6:


If you are experiencing this error you likely A webmaster/developer
If you are experiencing this error you likely A webmaster/developer
trying to cross platform various components of your website - You
 
trying to cross platform various components of your website - You
 
have a file server as server A, your flash file located on server B,  
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
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  
 
servers "talk" to each other before submitting the final end-product  
 
to user A.  
to user A.  


Line 17: Line 22:


Assuming that you are attempting to cross-reference your domains for a
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
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  
server, try the following fix.  If your Flash file, located at  
http://www.domain.com/flash.swf for example, is trying to access resources
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  
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:
called playlist.xml on domain2.com.  To get around this try the following:


Line 27: Line 37:


   2. On your current domain (domain.com) create a crossdomain.xml file -  
   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  
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  
example, domain2.com) to access your content.  A sample of code that may  
work is:
work is:


Line 39: Line 52:
</pre>
</pre>
The code above allows yourdomain.com and all subdomains access.  This code
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  
 
was taken from http://flowplayer.org/forum/1/16891.  The code should be  
 
placed at http://yourdomain.com/crossdomain.xml
placed at http://yourdomain.com/crossdomain.xml


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




If the above does not solve your problem you may also find useful information  
If the above does not solve your problem you may also find useful information  
in the Adobe livedoc, located here:  
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  
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  
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.  
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
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  
file may actually load faster.  Unless you have a specific reason for  
cross-referencing, it's usually better to keep everything in one place.
cross-referencing, it's usually better to keep everything in one place.




Paul EDIT:
Paul EDIT (getest en werkt):


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


1. maak een bestandje genaamd crossdomain.xml
1. maak een bestandje genaamd crossdomain.xml


2. gebruik de volgende code
2. gebruik de volgende code


<pre>
<pre>
Line 75: Line 98:
</pre>
</pre>


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

Latest revision as of 10:27, 14 November 2016

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 (getest en werkt):

Van wip.internal.int naar -> xxx.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.xxx.com/crossdomain.xml