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


Similar Posts:


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

Flex :: Throws A Warning,unlike Java, Which Throws An Error "Assignment In Conditionals"?

Aug 6, 2009

If I use an Assignment within conditional, for e.g.
if(userType='admin')

Flex throws a warning,unlike Java, which throws an error.Why should Flex be doing this, despite being one of the newest languages? 1100: Assignment within conditional. Did you mean == instead of =?

View 2 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

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 :: 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

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

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

Actionscript 3 :: Ilereference 'save' Throws Error

Apr 2, 2012

i have a code which saves a display object locally as an image file, but at some point it began throwing error 2174. this code is called either from context-menu click event or keyboard event.

var sourceBmd:BitmapData = new BitmapData(displayObject.width,displayObject.height);
sourceBmd.draw(displayObject,new Matrix(displayObject.width,0,0,displayObject.height));
var jpgEncoder:JPGEncoder = new JPGEncoder(80);
var byteArray:ByteArray = jpgEncoder.encode(sourceBmd);

[Code]...

View 3 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

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 :: "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 :: 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 :: 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

ActionScript 3.0 :: GetDefinitionByName Throws Undefined Variable Error?

Sep 17, 2008

Flash CS3 project. Can anyone explain this:

var ViewClass:Class = views.Login;
view = new ViewClass();
// ^works fine

[code].....

View 2 Replies

ActionScript 3.0 :: URLRequest With Https:// Throws Error#2032?

Mar 9, 2010

I am trying to load a sample.xml usinghttps://, When I try loading I get Security Alert pop up. After I accept & even if I install the certificates It fails to load the XML file and  IOErrorEvent gets called. How to load a XML files from secured server using https:// ?
 
Code I am trying is :
var loader:URLLoader = new URLLoader();  configureListeners(loader);
var request:URLRequest = new

[code].....

View 3 Replies

ActionScript 3.0 :: File Reference (Save) Throws Error

Apr 3, 2012

I have a code which saves a display object locally as an image file, but at some point it began throwing error 2174 (up until then it worked fine). This code is called either from a context-menu click event or a keyboard event.

var sourceBmd:BitmapData = new BitmapData(displayObject.width,displayObject.height);
sourceBmd.draw(displayObject,new Matrix(displayObject.width,0,0,displayObject.height));
var jpgEncoder:JPGEncoder = new JPGEncoder(80);
var byteArray:ByteArray = jpgEncoder.encode(sourceBmd);
try {
filereference.save(byteArray,"posterImage.jpg");
} catch (e:Error) {
Debugging.alert("error: ",e.message);
}

As you can see, the filereference has only a single action - so no reason for error 2174 to be thrown (and yes - I also have a listener for the 'cancel' event). I'm publishing for flash player 10.0

View 1 Replies

Flex :: FFlexCover 0.81 Throws ServicesDepdendency Error No Matter What

Oct 8, 2009

I've used FlexCover quite a bit before so this is absolutely absurd to me. No matter what version of the flex sdk (3.0, 3.2, or 4) that I apply the appropriate patches too, I get the following error when trying to compile:[code]I have absolutely no idea why this is happening. One thing that is odd however (and I'm hoping is the source of my problem) is that I can NOT download the SDKs that are specifically suggested by the Flexcover documentation. Copying folders on Mac OS X does not merge them and so I was losing the original jar's that needed to stay there.

View 1 Replies

Actionscript 3 :; URLStream Throws Error # 2029 In Flex AIR App?

Nov 2, 2010

In my AIR app,I am trying to implement a file downloader using URLStream.


public class FileDownloader {
// Class to download files from the internet
Function called every time data arrives[code].....

I simply create an object of the above class and passing the url and the file and call the load function. For some files I get the following error.

remotePath: http:[url].....error while writing bytes from...Error:Error #2029: This URLStream object does not have a stream opened.Which means the error is from the file stream(fileAccess) that I am using. I am unable to figure out why this could be happening. If I try to open the url http:[url]... in the browser, it opens properly. This happens randomly for some files.

View 1 Replies

Flex :: Papervision3D Throws An Error When A 3D Object Is Clicked?

Aug 25, 2011

I am working on a game in which there are several Plane objects that the player can click. My main application class extends the BasicView class. I made this whole game as an ActionScript project and everything works fine when I run it as one.

Now I load this game in a Flex application. When added to the Flex application, it runs perfectly until I click somewhere at which point it throws the following error:

undefined
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:Omer

[Code]......

View 1 Replies

ActionScript 3.0 :: Russian Text Throws Error 2032

Jan 27, 2010

I'm having some trouble understandig this. What i'm doing is using a very basic urlLoader to send text to an ASP. Everything works just as expected using English and Swedish, but if i try and send some Russian (cyrillic) Flash throws an error 2032 on a script working flawless up to this point. Am i missing the obvious here? the first one to admit never worked with russian thext in this fashion before, does it need special encoding or is there something i need to do to make this work?

View 1 Replies

ActionScript 3.0 :: FileReference Throws Error On Domain With Htpasswd?

Apr 9, 2009

I'd never used FileReference on a domain protected by htaccess and htpasswd. I'm getting I/O and Stream errors when my SWF is hitting those PHP scripts. I know I can host the PHP on an unprotected domain, but I'd prefer not to do that.

View 3 Replies







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