Flash :: Flex Sandbox Error On ExternalInterface

Dec 9, 2011

My Flex application generates a sanbox error SecurityError: Error #2060: Violation securtity sanbox : ExternalInterface file:///C:/Documents and Settings/test/Bureau/FPtest/4.5/flashProspectus.swf cannot access file:///C:/Documents and Settings/test/Bureau/FPtest/4.5/flashProspectus.html.

1) this works when I do publish it on the web, does not work when I open the HTML file as file://

2) params.allowscriptaccess = "always";

3) I tested with c:flashProspectus.html (to avoid having SPACES in the file path)

4) in my flex init, I added: Security.allowDomain('*');

5) in my flex init I got

[CODE]..

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

ActionScript 3.0 :: Cannot Use MSN - Error "Security Sandbox Violation: ExternalInterface"

Oct 30, 2011

I have a problem with ActionScirpt. When I log in to MSN, it displays me an error: SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller at flash.external::ExternalInterface$/_initJS() at flash.external::ExternalInterface$/addCallback() at user_data_fla::MainTimeline/frame1() it makes using MSN impossible. The problem has been from the very beginning, and my computer is just a week old... I'm not really sure if I have ActionScript 3.0 or ActionScript 2.0 but it's a new computer with Windows 7 Home Premium 64-bit.

View 1 Replies

Php :: Flash/Flex & PHP Socket Application Sandbox Error?

Dec 3, 2010

I am running a socket server using PHP. The socket server runs fine because I can connect to it using PHP.Now, I have a flash application that is trying to connect to it:

this.socket.addEventListener(Event.CONNECT, onSocketConnect);
this.socket.addEventListener(Event.CLOSE, onSocketClose);
this.socket.addEventListener(IOErrorEvent.IO_ERROR, onIOError);[code]....

When I run the application locally, it works! However, when I upload it to my server I get a sandbox security error (#2048). The flash app is actually hosted on the same server as the socket server, and there is cross domain policy file in place.

View 3 Replies

Flex :: Why Does The Flash Player Throw A Sandbox Error In This Case

Nov 10, 2009

I get a Flex 3 sandbox error #2048 after connecting to a Socket on a Java (1.5) server. The server code is all mine, i.e. not running under Apache. Flash Player 10.0 r32.The sequence is as follows...

1 Java server starts, listens on port 843 for policy file request and on port 45455 for my other requests.

2 Flex client served by Apache (although I get the same result if I run it from the file system), socket connection made on host:45455.

3 Flash Player requests policy file from port 843. This is the standard behaviour with the new security settings looking for a master file. It happens regardless of whether a different policy file has been specified.

4 I serve the following XML from Java through port 843:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
</cross-domain-policy>

5 The player writes the following into the debug policy log...

OK: Root-level SWF loaded: http://localhost/bst/BasicSocketTest.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.2.3:45455 by requestor from http://localhost/bst/BasicSocketTest.swf
OK: Policy file accepted: xmlsocket://192.168.2.3:843
OK: Request for resource at xmlsocket://192.168.2.3:45455 by requestor from http://localhost/bst/BasicSocketTest.swf is permitted due to policy file at xmlsocket://192.168.2.3:843

6 I send a text message from the client to the server on port 45455 using writeUTFBytes() and flush() (this is my own home-baked message protocol, and is correctly processed at each end)

REG/REGISTER;simon;Si

7 Java server thread listening on port 45455 responds with

REG:0/REGISTER:SUCCESS;simon;Si

8 The Flex client receives a ProgressEvent and the event listener I bound to the socket gets called. I process the message (write it to a text box on the screen)

9 The Flash player throws a 2048 sandbox error and the socket is disconnected! This is after the message is received and processed successfully. In fact it is about 12 seconds after. Nothing else works through the socket.

I have tried explicitly loading a policy file with a call to Security.loadPolicyFile() in the Flex client, but the reality of the new player security is that it is basically ignored. The steps are that the policy request will not get sent until a socket i/o operation occurs. At that point the player always goes to port 843 first looking for a master policy file. If it finds one, and it is permissive, it goes no further.

I have tried a variety of alternative ways of terminating the policy file and policy file contents, including deliberate errors just to see if the Flash Player is awake.I can see no reason why I would have a 2048 being thrown. I accurately serve a socket policy file on the designated master security port, which the player itself logs as correct. The socket then successfully sends and receives a message from the server the contents of which are available to my code.

P.S. Please don't tell me to use BlazeDS or LCDS or Granite, or something else as a server, I'm looking for a solution to this problem, not a redesign. And please don't ask me to use an XMLSocket instead - I tried that and get exactly the same result. I have chosen my architecture carefully and deliberately and I want a binary socket.

EDIT :In response to James Ward's request in his comment, here is the entire error message:

Error #2048: Security sandbox violation: http://localhost/bst/BasicSocketTest.swf cannot load data from 192.168.2.3:45455.

I have a stripped down test client which has a handler for each socket event and outputs a message to the screen. This is what it shows:

RequestPolicy: 192.168.2.3:843
Create Socket: 192.168.2.3:45455
Connect: [Event type="connect" bubbles=false cancelable=false eventPhase=2]
Sending: REG/REGISTER;simon.palmer@gmail.com;Si
Receiving: REG:0/REGISTER:SUCCESS;simon.palmer@gmail.com;Si/
Close: [Event type="close" bubbles=false cancelable=false eventPhase=2]
Error #2048: Security sandbox violation: http://localhost/bst/BasicSocketTest.swf cannot load data from 192.168.2.3:45455.

The close event is fired immediately after successfully receiving a response from the server, however the Error #2048 does not appear until about 20 seconds later. If I try and send a further message after close, but before the error, the Flash Player throws an invalid socket exception.

View 9 Replies

Professional :: Local Sandbox Versus ExternalInterface

Aug 19, 2010

So I wrote a CS4 Illustrator plugin that loads a SWF as its user interface.  Works great on the mac, but I am having a problem on Windows:The .swf needs to be compiled with the "-use-network=false" option set in order to access some files on the local machine.  HOWEVER when that option is set, all of my "Externalinterface" calls break down.  When "-use-network=false" is not set, then I can't access the local files, BUT my "externalinterface" calls (which communicate with the plug-in) work just fine.
The SUPER frustrating part is that

A) it works fine on the mac, and

B) on window, I don't even need to set the "-use-network=false" option for the swf to access the files IF the .swf is loaded in explorer.I'm not sure if using AIR is possible, but I'm trying that next since AIR can access both local and network files without all the sand box hokey-pokey.Also CS5 is not an option for me for this project.

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

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

Javascript :: Run In Flex Mobile Project - Error #2067: The ExternalInterface Is Not Available In This Container

Dec 21, 2011

From what Ive seen, most of the examples of using Javascript in Flex are designed for for the full desktop version (or for the browser) and not Flex mobile. For example using ExternalInterface in a Flex mobile project gives the error: Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime. Is it possible to call Javascript (such as the Google Maps Javascript API) in a Flex mobile project?

View 1 Replies

Flash :: Security Sandbox Violation - Error #2028 ?

Oct 22, 2011

while running my flash application i get the below error

* Security Sandbox Violation *

Connection to rtmp://system ip/live halted - not permitted from file:///F:/Flash

work/RTS/RT/vlab/BIOTECH/NEO/passive-properties-of-a-simple-neuron/vi-characteristics-of-
solarpanel.swf

-- Untrusted local SWFs may not contact the Internet.

SecurityError: Error #2028: Local-with-filesystem SWF file file:///F:/Flash work/RTS/RT/vlab/BIOTECH/NEO/passive-properties-of-a-simple-neuron/vi-characteristics-of-solarpanel.swf cannot access Internet URL rtmp://system ip/live.[code].....

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

ActionScript 2.0 :: Error Message Sandbox Violation

Feb 11, 2009

iget the error message when in test movie but the file works fine.

*** Security Sandbox Violation ***
SecurityDomain 'http://www.woodfieldinteriors.co.uk/flash/main/1/mc1.swf' tried to access incompatible context 'file:///D|/DanData/web%20sites/woodfield%20interoirs/public%5Fhtml/flash/index.swf'

View 0 Replies

ActionScript 3.0 :: Security Sandbox Error #2070

Dec 19, 2011

Any one know how to fix this problem? Security sandbox error #2070

View 1 Replies

ActionScript 3.0 :: Sandbox Error - Xml Isn't Loading The Content?

Feb 22, 2011

I've been creating a fla that reads an XML file, that tells which swf to import.Finally got that all working and put it on the local network at work, only to get a sanbox error. It seems for some people the main fla will work for people, but the xml isn't loading the content. I've read some about having to include a domain in the xml, giving permission to domains named. The problem I'm having trouble with is what do I do for a local network? And were going to be sending it to other people who will be running it on their local computers or their office networks.

View 1 Replies

Flex :: Flash SecurityError About Sandbox. Force To LoadPolicyFile But It Didn't Work

Mar 1, 2011

i have a crossdomain.xml on my server. but it not in "/". and i use loadPolicyFile to load this crossdomain.xml.

Security.allowDomain("*")
Security.allowInsecureDomain("*");
Security.loadPolicyFile(AddressContext.getCurrentEnv().split("rest")[0]+"crossdomain.xml")

the PolicyFile's url is like this :[URL]and my restful webservices address is like this : [URL]crossdomain.xml include my flash's host url.the weird thing is flash still tried to load the [URL] like this first is right and response 200. the second response 400 .finally, the flash still told me SecrityError#2048

View 1 Replies

ActionScript 3.0 :: Error 2142 - Security Sandbox Violation?

Mar 18, 2010

I have a problem when I try to compile my player, I get the following error:

SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.[code]....

1. I have used Security.allowDomain(url...); in the source code

2. This was working fine the day before last.I have tried adding a crossdomain.xml file in the folder where I build the player, still no joy. I tried throughout yesterday to fix it to no avail. I've even tried installing and building the player on a different machine to double check there wasn't something wrong on my PC.

View 2 Replies

Data Integration :: Sandbox Error On URLRequest To Php File?

Oct 26, 2011

I am running into an issue with passing variables from Actionscript 3 to PHP.This is a very basic program just for testing purposes to find out if this will work.Here is the Actionscript 3 coding (One button named 'btn_Submit' and one text box named 'txt_User' are on the stage).This is a very simple attempt to input text into an 'Input Text Box', upon pressing a submit button, it should pass the text to a php file named 'test.php'.The .swf file and the test.php files are both located in the same directory on my webserver (main directory for subdomain 'www.testing.budgetmylife.net')For the URLRequest parameter, I have even tried just ("test.php"), without success:

import flash.events.*
import flash.net.*;
var myVariables:URLVariables = new URLVariables();

[code]......

View 2 Replies

ActionScript 3.0 :: Error #2122: Security Sandbox Violation

Nov 19, 2011

I am working in my website in AS3. In the main file, when I click a movie_button, the movie_ swf file is loaded, but the movie swf_file uses an xml file which contains the url of thumbnails and videos which are located and addressed on my server. I have checked the paths and all of them are correct, but I receive Error #2122: Security sandbox violation yet. I tried to solve the problem with a crossdomain.xml

[Code]...

View 4 Replies

ActionScript 3.0 :: Error #2047: Security Sandbox Violation?

Dec 27, 2011

Does anyone know how to fix this problem? i have upload one swf (generated from proggram which made 3d galleries) on server and when my main swf load this i have this error at about 80% of loading.

View 10 Replies

Flex :: Flash Player 10.1 Causing Sandbox Violation No Previous Version Caused

Jun 19, 2010

Working with a SWf where it's worked all along, loading data from url...But, now, if you switch from Flash Player 10 to Flash Player 10.1, I get the standard security sandbox violation:[code]The crossdomain.xml is still in place and if I downgrade to FP 10 (or earlier), it works as expected.

View 5 Replies

ActionScript 3.0 :: SecurityError: Error #2123: Security Sandbox Violation

May 13, 2009

I'm building a page flip catalogue that calls in individual swf's... everything working perfectly except for one thing... I'm trying to call in a net stream to a video object and I'm getting the following error.

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: [URL]cannot access null. No policy files granted access.
at flash.display::BitmapData/draw()

[code]....

There is a crossdomain xml file on the server so I'm not sure what else to try, Have tried all the normal checkPolicyfiles = true; etc but still no joy.

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

Professional :: SecurityError: Error #2028: Security Sandbox Violation

Mar 25, 2011

i have this error :
 
Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.Attempting to launch and connect to Player using URL D:iagora
ovoguestgbook_v5.swf[SWF] D:iagora

[code]....

View 5 Replies

ActionScript 3.0 :: SecurityError: Error #2060: Security Sandbox Violation:

May 28, 2011

Iam trying call javascript function in brouser getting this error.
 
SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file://D:�527main.swf cannot access file://D:�527index.htm.    at flash.external::ExternalInterface$/_initJS()    at flash.external::ExternalInterface$/addCallback()    at main_fla::MainTimeline/frame4()[D:�527includesgetVar.as:54]

View 1 Replies

Javascript :: SecurityError: Error #2060: Security Sandbox Violation

Feb 5, 2010

I'm trying to access a swf function from javascript using External Interface given by adobe and I get the following error.

SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://media.varheroes.com/flash/flashtest.swf cannot access http://apps.facebook.com/feline-frenzy/flashtest/.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/addCallback()
at flashtest_fla::MainTimeline/frame1()

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







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