ActionScript 3.0 :: Getting Sandbox Error #2048

Jan 2, 2010

Got a flash application that connects to a server. When I run the flash application from within Adobe Flash it connects no problem. When I try to run it from IE from the web it gives an error 2048. Now the interesting thing is that the server I connect to from flash is showing the flash application connects briefly then disconnects. I have a crossdomain.xml file I have created but haven't figured out if I am missing something.[code]...

View 18 Replies


Similar Posts:


Flash 9 :: Sandbox Security - Error #2044: Unhandled SecurityError:. Text=Error #2048: Security Sandbox Violation

Mar 5, 2008

I get following error: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: [URL] cannot load data from 192.168.3.5:4854. at TicTacToe_fla::MainTimeline/TicTacToe_fla::frame1() ". I tryed to solve this problem about 3 hours, but I failed I have the file crossdomain.xml in the same folder like my .swf file on the server with this content:

[Code]...

View 7 Replies

Xml :: Error #2044: Unhandled SecurityError:. Text=Error #2048: Security Sandbox Violation?

Feb 27, 2010

I have created a crosdomain policy file, I have added code to my flex app, and I still get security sandbox violation...have I done something wrong? Here are my errors and file snippets:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/folder2/media/swf_demo.swf cannot load data from http://mysite.com/folder1/folder2/media/locXML.xml.

swf_demo.swf is my flex application

The following lines have been added to my flex application:

Security.allowDomain("mysite.com");
Security.allowDomain("www.mysite.com");
Security.allowDomain("http://mysite.com/folder1/folder2/media/locXML.xml");[code]..

View 1 Replies

ActionScript 3.0 :: Error #2044: Unhandled SecurityError - Text=Error #2048: Security Sandbox Violation

Nov 17, 2010

When i am running my file locally it runs well but when it runs from a server, it throws an error

[Code]...

I googled a lot. I found a solution of cross domain policy funda but i am not clear with it. Anybody has ideas of getting rid of this problem..?

View 2 Replies

ActionScript 3.0 :: Text=Error #2048: Security Sandbox Violation

May 22, 2010

I am trying to connect to a socket server with the following:

Code:
Security.loadPolicyFile("xmlsocket://192.168.1.111:843");
var xmlsocket:XMLSocket = new XMLSocket();
xmlsocket.connect("192.168.1.111", 4000);
stop();

Here is the policy file:

Code:

<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" to-ports="*"" />
</cross-domain-policy>

Debug Output:

Attemping to launch and connect to Player using URL C:Documents and SettingsMattDesktopMUD_Clientclient.swf
[SWF] C:Documents and SettingsMattDesktopMUD_Clientclient.swf - 1977 bytes after decompression
*** Security Sandbox Violation ***Connection to 192.168.1.111:4000 halted - not permitted from file:///C|/Documents%20and%20Settings

[code]....

View 3 Replies

ActionScript 3.0 :: Error #2048 - Security Sandbox Violation (Socket)

Feb 21, 2011

I am trying to connect to a public resource using actionscript. I already have a PHP site set up to do this, but wanted to move it to Flash. From what I have read, Flash absolutely requires the destination location to have a crossdomain.xml file referencing the remote SWF. This seems absolutely ridiculous.

If I am correct, this means that public resources such as RSS feeds cannot be accessed using Flash? Is there any possible way to access a public file (like RSS) remotely from a SWF without having access to the destination server's crossdomain.xml file? I've tried using Socket and URLRequest, both giving the same "sandbox violation" error.

View 1 Replies

ActionScript 3.0 :: "Error #2048: Security Sandbox Violation?

Jun 17, 2008

I seem to be getting this error everytime I try to connect to my XMLSocket server, does anyone have any idea what this is. I do have a crossdomain.xml file at the server root. The crossdomain file consists of:

<cross-domain-policy>
<allow-access-from domain="*" to-ports="4000,4444" />
<allow-access-from domain="*" to-ports="5000" />

[code]....

View 2 Replies

ActionScript 3.0 :: Good Old Error #2048: Security Sandbox Violation?

Aug 28, 2009

I have an swf hosted on let's sayI want to allow it to access my localhost. So in the root of my localhost, I've placed the crossdomain.xml file:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

[code]......

View 1 Replies

Flex :: Error #2048 Security Sandbox Violation - Cannot Load Data

May 30, 2011

I get the below error when i am trying to make a java call from flex.

[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error error

[Code].....

View 2 Replies

IDE :: XMLSocket - "Error #2048: Security Sandbox Violation"

May 16, 2009

I'm attempting to create an XMLSocket that connects to a PHP-written socket server.I think my code is pretty sound. I used to receive an IOError, but now that is solved and I keep receiving "Error #2048: Security sandbox violation". My .swf, socket server, and crossdomain files are all in the same directory.

My ActionScript:

Code:
package
{
import flash.display.MovieClip;
import flash.events.IOErrorEvent;

[code].....

View 11 Replies

ActionScript 3.0 :: "#2048: Security Sandbox Violation" With HTTPS

Nov 23, 2011

I'm running into an issue with an HTTPS post request where I get the following error (please note some of the URLs have been modified to protect privacy):

Code:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://[local_ip_addr]/[my_swf].swf cannot load data from https://dev.[domain_name].net/[path_to_xml].

When I review the crossdomain.xml I have the following (again, sections omitted to protect privacy):

Code:
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"></site-control>

[code]....

So that appears to be set up correctly. Requests sent to the HTTP protocol happen just fine, it seems only to be the HTTPS. Do I need to set up Security.allowInsecureDomain() to have this work or is there something on the crossdomain.xml side that I need to set further (such as <allow-access-from domain="*" secure="false" />)?

View 1 Replies

ActionScript 3.0 :: Error #2044: Unhandled SecurityError:. Text=Error #2048

Oct 16, 2008

am having a little trouble with a simple form on one of my flash websites. The form takes three pieces of information (name, email and description) and should submit this data to a php page in the same directory where it emails it to me.

When I run the swf from the Flash CS3 Pro program, the connection and submission goes smoothly and I receive the email.But when I load the swf and the php file onto my site and try it over the internet, it gives me the following error:

Error #2044: Unhandled securityError:. text=Error #2048:
Security sandbox violation:
http://MYSITE/test/theswf.swf
cannot load data from

[code]....

View 4 Replies

ActionScript 3.0 :: Error #2048 Socket Security Sanbox Error While Policy Server Is Working

Jun 9, 2011

I have an application that connects to a binary socket server running on port 2234. I use the python policy file server, which I downloaded from [URL], which runs on port 843. If the client app is trying to connect to a socket I can see that the server is receivng the request for a policy file and that it sends it to the client. However, in the client, I get a security sandbox error. How is this possible? And is it possible to check whether the client really received the policy file? BTW, here is my policy file:

<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="*" to-ports="*" /></cross-domain-policy>

View 3 Replies

ActionScript 3.0 :: Security Sandbox Violation #2048 - Load The "load Policy File"

May 24, 2010

I have a big problem i get this error even if i load the "load Policy file".

View 1 Replies

ActionScript 3.0 :: Flash Security - Getting "#2048: Security Sandbox Violation"?

Apr 29, 2009

My SWF resides on domain A, is loaded by a web site on domain B and is trying to ping URL (URLLoader.load) on domain C. But I am getting "#2048: Security sandbox violation" .. why? Of course I have read the manual, I saw the security white paper but I do not understand it. Don't you know any blog or such where it is explained for dummies? With lots of examples and maybe a table showing what is allowed and what is not?

View 2 Replies

ActionScript 3.0 :: XMLSocket Error #2048?

Aug 6, 2009

Im looking for a solution for the Error #2048 from Flash. I have a server program developed in Java using the class xSocket and it works fine. It manage the clients from Flash. Well, once i installed the server app in my domain "97.225.158.110" and running the client developed in Flash from my PC within Flash environment, it connects to the server with no problem. But, if i upload the flash to the domain and load it in a web explorer, it doesnt work. Well, i have been seeing many web pages mentioning the policy file and i will show you how i have done it: In the the Java App i have a event handler for incomming data where i idetify the incomming string:

Code:
if(data.equalsIgnoreCase("<policy-file-request/>")) {
Main.Log.append("Enviando archivo Politica Seguridad");
nbc.write("<cross-domain-policy><allow-access-from domain="*" to-ports="8090"/></cross-domain-policy>�");[code].............

Well, the java server app receive the string policy request and it should answer with the quoted file but the Flash never receive it and in a minute the Error 2048 appear.

View 2 Replies

URLLoader Throws Error#2048 On Mac

Oct 19, 2009

My flash application seems to run correctly on Windows but not on a mac. It is supposed to retrieve data from a php file with the following code:.

[Code]...

When loaded directly from a browser, the php code works fine both on Windows and Mac. But the flash app throws a Error #2048 on Mac. here's the code for the app:

[Code]....

View 1 Replies

ActionScript 3.0 :: Security Error #2048 With Crossdomain.xml File

Apr 20, 2009

I am using the XML/MX/Syndication libraires and getting a Security Error #2048 error. The error seems unreasonable to me in that there is no forward solution to it on the Internet. I have tried hardcoding security methods in AS 3 and also using a crossdmain.xml file in my root directory to no success. I am about to give up and use pure PHP. There should be a more simple solution to this.

View 11 Replies

ActionScript 3.0 :: Cross Domain Scripting: Error #2048?

May 13, 2009

This is my first entry in this forum but I already found a lot of answers by browsing it.However, altough many references seem to solve the problem I'm hurting on, it doesn't seem to work for me...Now, here's the case:I made a flash web site that will be hosted on an external web server (let's call it serverMy flash needs to get some info from my internal server don't have access to the root, only to the folder myfolder so my website reads like this

View 1 Replies

Actionscript 3 :: Security Error 2048 On Socket Connection

Feb 11, 2012

I have a simple IRC socket that is used to communicate with servers for a web-based IRC client. Unfortunately, attempting to connect to a network results in a security error. I read up on sandboxes and their appropriate permissions, and then used Security.sandboxType to get the sandbox of my socket, which came up as remote. After reviewing the documentation, I still don't fully understand how I can enable my socket to connect to a remote IRC server. I tried Security.allowDomain,

View 1 Replies

ActionScript 3.0 :: Cross Domain Policies - Getting The Error #2048?

Feb 11, 2009

I have the following:

PLAYER.SWF -- contains flv player and controls.
cross-domain-policy.xml -- that allows everything.
www.yoursite.com[code].....

If I have all the files on the same domain, everything works. The swf is designed to look for the prefs.xml file at whatever location where the html page is. I can have the swf in a location like[url]... and have everything else in some other funky location on that domain. If I try to have the html page and prefs and stuff on another domain, it can't read from the prefs.xml, and I get the Error #2048. From my research, this is a cross-domain issue, but I have cross-domain policies all over the place and it's still doing it.

View 1 Replies

ActionScript 3.0 :: Error With Java+Flex Socket #2048?

Apr 27, 2010

i got a problem with 'Security error',it happens when i try to connect my XMLSocket (Flex) with my Socket (Java)i have a domain:

alucardeck.mine.nu

i startup my apache tomcat 6.0 and in ROOT folder i have:

policyFile.xml and crossdomain.xml

(i had a doubt about what is the correct filename so i created both)both files contains:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

well, yes, you can access using the default port 80, as it should be.(but probably my server will be down when u try to access it)so here is what i do: i run my Java server application.there i open 1 socket in port 19809.(i already tried with port 843 too) then, i run my Flex application: [URL]also i tried to run it in ROOT folder..the XMLSocket class is instanced like this:

xmlsock = new XMLSocket();
// add all listeners
Security.loadPolicyFile("http://alucardeck.mine.nu/crossdomain.xml");
// also tried "xmlsocket://alucardeck.m....

[code]....

i also notice when i start my Java Server application with 2 sockets listening ports: 843 and 19809, i notice Flex first try to connect to 843 and then 19809, and in both sockets i reply with that String from before.

View 1 Replies

Flex :: SWF No Longer Work - Error 2048 / 2046 Or 2032

May 23, 2010

I'm pretty new to Flex. Basically, anything I try to build with mxmlc fails to run now, giving me the above three errors depending on what I do. It was working 30 minutes ago, I've been spending that time trying to figure out what has changed. I redownloaded the Flex SDK, cleared my assetcache, have cleared Firefox's cache. (I'm using Linux.) Even if I compile with -static-link-runtime-shared-libraries=false, since it seems like #2048 is a RSL problem, it still refuses to run.

Another strange thing, if I keep
<policy-file-url>[URL]>
<rsl-url>textLayout_1.0.0.595.swz</rsl-url>

In my flex-config file, then firebug tells me that my swf file is trying to access a copy of that in the app's folder, giving error 2032. And if I stick the one I have in frameworks/rsls/ then it gives me error 2046. I don't know how it could not be properly signed, unless Adobe magically changed a signature and didn't update their flex SDK.

View 4 Replies

Flex :: Connection Between Java / Using Blazeds Returns Error #2048

May 4, 2011

I have been developing an application(a website to be more precise) which consists of a flex front end which is constantly sending and receiving data from the back end which is programmed in java. The connection between the two components is being done through blazeds. This worked fine while I was running it locally, however when I uploaded both sides of the application to a tomcat server(online) the following error is being returned when a connection between the components should occur:URL...I have read around about this error and many seem to getting this error when making connections between different servers, unlike here, where the connection is occurring within the same server.

View 1 Replies

ActionScript 3.0 :: Flash Binary Sockets - Error 2048 Returns

Dec 1, 2009

I'm creating a Flash IRC client for a project, and it works fine locally. However, when I place the SWF on a server it returns the #2048 error. I've tried to load in a policy file with no luck.

View 9 Replies

ActionScript 3.0 :: URLLoader Generates Error #2048 Depending On File Contents

Jun 7, 2010

I've developed a preloader for an ActionScript 3 application that uses URLLoader to load an encrypted swf. This has been tested on different OSs, Flash Players and browsers and everything works as expected except for a series of PCs being used by a colleague on a corporate network. The PCs at fault use Flash Player 10.0.22.87 with IE6 on WinXP and get security sandbox error #2048 depending on the contents of the file being loaded! Some of the tests and results include:removing 99% of the contents but keeping first 6k (works)replacing contents with 4 bytes 00 (works)inserting 16 bytes: EF BB BF <html></html> at beginning of file (works)inserting 16 0s at the beginning of the file (fails)xor FF all bytes (fails)I've tried other tests such as different file extensions, Security.allowDomain(), crossdomain.xml, Security.loadPolicyFile(), dataFormat = URLLoaderData Format.BINARY etc but I think these are all irrelevant due to the fact that the app sometimes works.The code is just the standard new URLLoader(), adding event listeners, then calling load(new URLRequest()). The test app doesn't include the loadBytes() so this isn't the issue either.

The PC at fault could be behind a firewall or using a proxy. At this stage my only theory is that their antivirus, firewall or proxy is examining the contents and sometimes decides to intervene, perhaps with a redirect. This would also explain why (according to the web server logs) the files are being requested even though the security sandbox error is generated. However, this does not explain why Flash generates the error in the first place, depending on the contents.It's not possible for me to visit on site or get them to modify their settings or configuration, but I can ask them to run various Flash Apps for testing.URL...I can come up with a workaround (such as ensuring the file always starts with dummy <html> tags and then strip them before decrypting), but I'd prefer to get to the bottom of this issue if possible to be confident it won't occur again; this is for a Facebook application so it's possible it will be used in a large variety of environment

View 11 Replies

Actionscript 3 :: Security Sandbox With Flex And AppEngine - Getting Client.Error.MessageSend Channel.Security.Error?

Dec 20, 2009

I'm having trouble with an AS3 AMF RemoteObject request that is hosted on App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint.Here are the contents of the root crossdomain.xml:

<?xml version="1.0"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies ="all"/>[code].....

Loading the swf file and testing it on my machine works just fine... I think that may have something to do with me having the debugger version of Flash Player. When I push it up to App Engine to make it public, other clients access it and get a Client.Error.MessageSend Channel.Security.Error error Error #2048 url: http:[url].......I am using Flex 4 beta, and the App Engine Python runtime. I have tried full wildcard in the crossdomain, and even accessing the data endpoint at a relative URL so as to avoid this error.

View 1 Replies

ActionScript 3.0 :: Socket Connection Cross-domain - "Error #2048"

Feb 3, 2009

I made simple java server on one pc and tried to contact it from another pc on LAN from localhost, so far so good, it worked flawlesly. But when I want to contact the java server outside the security sandbox(from webpage), it will throw me an error:

[Code].....

View 1 Replies

ActionScript 3.0 :: Swf File In Flash CS5 - Put It On The Server, And Then Go To The Website It Returns "Error 2048"?

Feb 3, 2011

I have a swf file "website.swf" on my desktop computer, in the www directory of my wamp server. The website loads the swf file fine.I have one textbox that i want to be able to load all the different contents of my site depending on the page, and in the same directory, I have all the different txt files (i.e. news.txt about.txt portfolio.txt etc)Now, when I'm running the swf file in Flash CS5, it makes me allow it and then works fine. However, once I publish and put it on the server, and then go to the website it returns "Error 2048". I've tried doing the crossdomain.xml suggestions to no avail.

View 5 Replies

ActionScript 2.0 :: Security Sandbox Error With LoadVars?

Feb 8, 2010

I am using loadVars to load an url from a txt file and then passing that to another loadVars.When I test the movie it gives me a security sandbox error,but if I type in the url by hand it works just fine.

PHP Code:

var url:String="";
var myData:LoadVars = new LoadVars();
myData.onLoad=function(){

[code]....

This gives a security sandBox error but if I remove url and type the url in directly it works fine.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved