Error #2123 flash

error #2123 flash

So you're in Flash or Flex and your fileRef is failing to upload. Flash(Flex) Builder is telling SecurityError: Error #2123: Security sandbox violation. You can also try uninstalling the debug flash player and installing the release flash player from adobe's site instead. SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: error seems to be random Firefox and Safari on Mac running flash 10.

Related Videos

Repair lower arm Niva

SecurityError: Error #2123: security sandbox violation: BitmapData.draw:

  • Security sandbox violation: BitmapData.draw (video)

    Video files on the amazon S3 service.
    Each compartment of S3 (file/URL) that contains videos also have a crossdomain.xml policy file.
    My main server running MySQL dB and data-services that communicate with the Flash/Flex client and are deployed on another host/server environment.

    The SWF also used this "area" (where are deployed Data-Services and Db).

    The application is generally a variety of virtual editing and manipulation of video and multimedia content on media projects.

    Now to a module, I take a BitImage of the videos using BitmapData.draw () snapshots using the video ( instance) as the source for the draw randomly.

    Everything is fine when I'm currently running/debugging locally (for example, error #2123 flash, the SWF file was made in the Flex builder environment) However, error #2123 flash, when I make I get an error "security sandbox Violation".
    The individual:
    > > > > > > >
    SecurityError: Error #2122: security sandbox violation: BitmapData.draw: URL http:// < host > AppWrapper.swf cannot access the url http:// < amazon S3 > / < name of the video file > .flv. A policy file is required, but the checkPolicyFile flag was not established when this media was loaded.
    at flash.display::BitmapData/draw()
    at as_classes::FlxVideo/takeSnapshot()
    at components.popups::NewFootagePopup/takeImage()
    at components.popups::NewFootagePopup/__imageButton_click()
    < < < < < <
    Reading and Googling autour, I understand that I must create a LoaderContext, set his loaderContext.checkPolicyFile = true; and attach it to the Loader object that is responsible for the video.
    However, error #2123 flash, I can find no relevant objects that I can associate it with for example: isn't a loader object
    Netsream ( that only the 'game' is not a nor the object and which is also involved.

    I tried various other related security setting as the allowDomain (.) and others but nothing is.

    Thank you anyone with ideas/tips/pointers

    Thank you


    Problem solved. (bad me)
    NetStream class a checkPolicyFile property!
    The value is false, and all is well!
    (the docs specifically states:)
    Set this property to true when you load a video file from outside the domain of the calling SWF file, error #2123 flash, and you use the BitmapData.Draw (pixel) method - access the video on. If you call BitmapData.draw () without setting the checkPolicyFile property to true at loading time, you may get a SecurityError exception because the required policy file has not been downloaded.)

  • SecurityError: Error #2060: security sandbox violation...

    I think I have a lot of mistakes arise. Basically any site I go on containing the flash I get this error ' SecurityError: Error #2060: security sandbox violation. "but I have had others as well. I have firefox 3, mac osx 10.5.6 ideas error #2123 flash I can stop this?

    So I just solved this problem on my computer. It was very awkward and I started 3 of these errors arise every 30 seconds to 2 minutes.

    I found that it was a result of commercials playing on my AOL Instant Messenger buddy list.

    Downloaded a free software called adfender and 2060 errors have stopped.

    If you use programs such as AIM or Yahoo mail or any other applications or windows that can play ads (even on a site of news if it has ads)

    This is what is causing these errors is displayed.

    Adfender was an instant fix.

    This device or any other ad blocker (stand-alone program, error #2123 flash, not only an extension for your browser) should do the trick.

    Hope this helps, good luck!

  • How can I stop the error code "security sandbox Violation".

    SecurityError: Error #2060: security sandbox violation: ExternalInterface calling cannot access
    at flash.external::ExternalInterface$/_initJS()
    at error #2123 flash MessageSenderV2_fla::MainTimeline/frame1()

    [The update by the moderator topic title should be more descriptive. error #2123 flash topic title was: 'How to stop this error code?']

    Download this update.

  • Error #2048: Security sandbox Violation

    I worked on it for almost 2 days now, hp m1522n scanner error 5 with no luck.  Depletion of each mpasm.exe error proteus and the suggestion that I ran across, then I hope that the community can help!  In my quest for an answer to this, error #2123 flash, I hope he can serve a dual purpose and become useful information for other developers is going in this direction.  For some, you can see the contents and figure TL; DR, but I'm hoping to answer error correction coding djvu question that might otherwise span multiple messages.

    The goal is to use a socket "binary" for communication between a Flash application and a custom socket server I'm working.  I soon discovered that you must have a file "crossdomain.xml" to the Flash Application communicate via sockets.

    I develop on Windows 7 64 bits, using Flash Professional CS6, Microsoft Visual Studio 2012 and hosting under IIS.

    Eventually I plan on hosting the Application Flash crossdomain.xml on a remote server, but in order to develop what I wanted to try and keep everything on a single development computer.

    My political module Socket server receives the request for the Flash Application and returns the correct answer.

    Incoming packets using Debug-> Debug Movie--> in Flash Professional:

    GET HTTP/1.1 crossdomain.xml

    Accept: text/xml, application/xml, application/xhtml + xml, text/html; q = 0.9, text/plain; q = 0.8, text/css, image/png, image/jpeg, image/gif; q = 0.8, application/x-shockwave-flash, error #2123 flash, video/mp4; q = 0.9, flv-application/octet-stream; q = 0.8, video/x-flv; q = 0.7, audio/mp4, application/futuresplash, * / *; q = 0.5

    x-flash-version: 11,2,202,228

    User-Agent: Shockwave Flash


    Incoming packets by using control-> test movie-> in the browser:

    Bag #1

    < policy-file-request / >

    Bag #2

    GET HTTP/1.1 crossdomain.xml

    Host: localhost:843

    Connection: keep-alive

    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537,1 (KHTML, error #2123 flash, like Gecko) Safari/537,1 of Chrome/21.0.1180.89

    Accept: * / *.

    Accept-Encoding: gzip, deflate, sdch

    Accept-Language: en-US, en; q = 0.8

    Accept-Charset: ISO-8859-1, utf-8; q = 0.7, *; q = 0.3

    The response that is returned:

    <? XML version = "1.0"? >

    <! DOCTYPE cross-domain-policy SYSTEM "" > ""

    < cross-domain-policy >

    < error #2123 flash ports = "" * "domain =" * "/ >"

    < / cross-domain-policy >

    At first I wasn't sure if it worked, until I pulled a copy of a violin and looked at the packages being requested and returned.  Initially I had more entries, but as I read more the crossdomain.xml I discovered all the inputs excluded would be lacking at current values so I started to take them off to test crossdomain.xml configurations, that I've run across.

    Return all the XML content through the socket connection did not work, I found out later that I had to create a HTTP header and then add the XML content.

    I was able to confirm the Application Flash Professional CS6 received the crossdomain.xml when I was running the Application in Debug Mode (debug->-> Debug Movie in Flash Error #2123 flash and the generated output the following warning:

    Warning: domain does not specify a meta-policy.  'Master only' default meta-policy for the error #2123 flash This configuration is deprecated.  See solve this problem.

    I know that this is easily fixed by simply using a file as crossdomain.xml:

    <? XML version = "1.0"? >

    < ! DOCTYPE cross-domain-policy SYSTEM "" > error #2123 flash cross-domain-policy >

    < site permitted-cross-domain-policies of control = "master only" / >

    < allow-access-from ports = "" * "domain =" * "/ >"

    < / cross-domain-policy >

    Source ActionScript code:

    private void EstablishConnection(): void {}

    var sock: Socket;


    Security.loadPolicyFile (" / crossdomain.xml" "");

    socks = new Socket();

    sock.addEventListener (Event.CLOSE, closeHandler);

    sock.addEventListener (Event.CONNECT, connectHandler);

    sock.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);

    sock.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

    sock.addEventListener (ProgressEvent.SOCKET_DATA, socketDataHandler);

    sock.connect ("", 8080 ");


    private void closeHandler(event:Event):void {}

    trace ("closeHandler:" + event);


    private void connectHandler(event:Event):void {}

    trace ("connectHandler:" + event);


    private void ioErrorHandler(event:IOErrorEvent):void {}

    trace ("ioErrorHandler:" + event);


    private void securityErrorHandler(event:SecurityErrorEvent):void {}

    trace ("securityErrorHandler:" + event);


    private void socketDataHandler(event:ProgressEvent):void {}

    trace ("socketDataHandler:" + event);


    When I run the Flash Application in debug mode, the following content is displayed in the output window:

    ioErrorHandler: [IOErrorEvent type = "ioError" bubbles = false cancelable = false eventPhase = 2 text = "error #2031: error Socket."] ["URL:"]

    Warning: domain does not specify a meta-policy.  'Master only' default meta-policy for the application.  This configuration is deprecated.  See solve this problem.

    securityErrorHandler: [SecurityErrorEvent type = "securityError" bubbles = false cancelable = false eventPhase = 2 text = "" error #2048: security sandbox violation: file:///C

    1. 01-09-2012, 04:18 PM#1

      jspears is offline

      SecurityError: Error #2123 BitmapData.draw

      Hello All,
      I am having error #2123 flash issue with using BitmapData.draw(stage). I am getting the following error:

      SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C

      I'm trying to get a bitmap/snapshot of a Wowza video stream playing on my client, like so:

      When I do this, I get this error message:

      SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://localhost:51150/Resources/WRemoteWebCam.swf cannot access rtmp://localhost/videochat/smithkl42._default/. No policy files granted access.

      I presume the error comes from not being able to locate the appropriate crossdomain.xml file. I'm not quite sure php - error_reporting it's looking for it, and a wireshark sniff was inconclusive, so I've tried placing one in each of the following places:


      I can retrieve the file successfully from each of those three locations. (I'm pretty sure that the last one wouldn't have any effect, since it's just the location of the web site which hosts the page that hosts the .swf file, but on the off chance…)

      These are the contents of the file that it's grabbing in each instance:

      And it's still throwing that same error message.

      I've also followed the instructions on the Wowza forums, error #2123 flash, to turn on StreamVideoSampleAccess in the [install]\conf[appname]\Application.xml, with no joy:

      Any thoughts?

      SecurityError: Error #2123: Security sandbox conflict, which occurs when BitmapData.draw() is used on NetStream

       I was just new to AS3/Flash, and I was about to use Flash Media Server to do things, error #2123 flash. What’s more terrible is that I was tossed for a long time by a "SecurityError: Error #2123: Security Sandbox Conflict" in the past two days. .

          The universal solution to the safety hourglass problem on the Internet is:

          1. Put a crossdomain.xml file on the HTTP server

          2. Modify the main.asc code under FMS

          The first method is a feasible method when using server has gone away error mysql HTTP error #2123 flash [1]and the second method is a solution to the problem encountered when using FMS.


          I am using FMS4. To use vod, under the vod folder under application in the installation directory, modify it with main.far. main.far is a packaged file, which can be unpacked with winrar [2]there are two files, Application.xml and main.asc. You can modify main.asc.

          Open the main.asc file and find the application.onConnect function. There are two lines

      1. p_client.audioSampleAccess = "/";  
      2. p_client.videoSampleAccess = "/";  

          They were originally commented out, just remove the comment. In fact, there are notes in the program:

          As default, all clients are disabled to access raw audio and video and data bytes in a stream through the use of BitmapData.draw() and SoundMixer.computeSpectrum()., Please refer Stream Data Access doccumentations to know flash player version requirement to support this restriction. Access permissions can be allowed for all by uncommenting the following statements

          After the modification, repackage the two files Application.xml and main.asc as main.far. The far.exe [3] in the tools folder under the installation directory that comes with FMS is used. To pack these two files, just use the following commands on the command line:

          far -package -archive main.far -files main.asc Application.xml

          After running, main.far will be generated in the far.exe directory and copied to the previous vod directory.


          So finished, now you can use the raw data of NetStream.

          But when I run the program, it still prompts a safe hourglass! What is going on here? It turns out that I can't wait to use the draw function to get NetStream data when the data is not buffered [4] .

          The solution is error #2123 flash use the NetStatusEvent.NET_STATUS event. When it is in the NetStream.Buffer.Full state, we then access the NetStream data. At this time, there will be no safety hourglass.




      [1]HTML Developer's Guide for Adobe AIR: Accessing loaded media as data

      [2] What is the FMS main.far file and how to modify it

      [3] Practical tools in FMS3 (1)-far.exe

      [4]Client.videoSampleAccess False-Negative

      Original link:


      First of all GRRRRRR!!

      Second, this has been one of those things I randomly get sucked into between projects where I'll spend 5 hours on Google trying to figure it out and getting tiny fragments of info but never actually solving the issue. This is the worst! What the hell am I talking about? Say you use MAMP or whatever as a local testing server. You write some PHP and you need to use the mail() function. You test your new email function to your personal gmail account. Ok so you try it and it doesn't work, or even worse it works a couple times and then never again.  So you go to Applications->Utilities and fire up the Console application. You're shocked to see that there's a message in there saying something about Gmail not accepting mail from your IP address because it's registered as a residential thingy and apparently a lot of spammers use their personal computers to send spam.

      So you say no no there must be some mistake I'm a programmer, not a spammer, I'm just trying to test out my new app. But you quickly realize you're paused - ccp send_data error exit to a computer, pleading, and well it doesn't care. typical, error #2123 flash. After, you cry and try piece together a coherent step by step set of instructions to route all mail sent from your computer through your Gmail account - so it would be from you, error #2123 flash, and all go through, error #2123 flash. here's what you do.

      note that $ is used to show a new terminal command, you don't actually type it in:

      Open Terminal - found in Applications->Utilities and type in:

      $ sudo nano /etc/postfix/relay_password

      You'll now be editing a new error #2123 flash called relay_password in the nano Terminal editor, type in the following substituting your login info - it should work error #2123 flash google apps accounts as well: [email protected]:yourpassword

      Press ctrl+o on your keyboard followed by Enter to save the file, then press ctrl+x to exit the editor.

      Now type in:

      $ sudo postmap /etc/postfix/relay_password

      That should tell Postfix to use the relay file you just created. Gmail uses a secure connection so you need to head over to Verisign and download some root certificates. Go to the following url fill out your info and download the .zip file:

      Now type in the following commands one after another. In the second command it wants the you just downloaded, error #2123 flash, you can just drag the zip file onto the Terminal window and it will fill in it's location, don't do that for the 4th command though. Also note you may have some certificates already on your system, so after the second last command you may be prompted to replace existing certificates, type N so it doesn't replace the ones you have:

      $ sudo mkdir /etc/postfix/certs
      $ sudo cp /etc/postfix/certs
      $ cd /etc/postfix/certs/
      $ sudo unzip -j
      $ sudo openssl x509 -inform der -in thawte\ Primary\ Root\ CA\ -\ G2_ECC.cer -out thawte\ Primary\ Root\ CA\ -\ G2_ECC.pem
      $ sudo c_rehash /etc/postfix/certs

      Now type in:

      $ sudo nano /etc/postfix/

      Go to the end of the document, you can delete the MAMP stuff, error #2123 flash, also note that if you have MAMP Pro and you edit postfix settings from there it'll fuck up what we're doing here. So remember this going into error #2123 flash future and don't do that.

      Paste in the following at the end of the document - note: use the keyboard to get around the document, but use the mouse to right click and paste:

      relayhost =
      # auth
      smtp_sasl_auth_enable = yes
      smtp_sasl_password_maps = hash:/etc/postfix/relay_password
      smtp_sasl_security_options = noanonymous

      # tls
      smtp_tls_security_level = may
      smtp_tls_CApath = /etc/postfix/certs
      smtp_tls_session_cache_database = btree:/etc/postfix/smtp_scache
      smtp_tls_session_cache_timeout = 3600s
      smtp_tls_loglevel = 1
      tls_random_source = dev:/dev/urandom

      Save it like we did before by pressing ctrl+o, error #2123 flash, then Enter, then ctrl+x.

      Now type in:

      $ sudo nano /etc/postfix/

      You're now editing, this is a different file to we just pasted stuff into, error #2123 flash. There should be a table in here, find the line in the table that looks something like this:

      #tlsmgr    fifo  -       -       n       -       1       tlsmgr

      Make it look like this - note the comment is removed and fifo should be unix:

      tlsmgr    unix  -       -       n       -       1       tlsmgr

      Save it like the other times pressing ctrl+o, then Enter, error #2123 flash, then ctrl+x.

      Ok, so at this point you can put the following into terminal and see that it works - put your email address in there error #2123 flash "Subject: blah" /Users/mww/web/crafty%20copy/10%2D11.swf' context

      My code is

      beginning of the code

      Security.allowDomain ("");

      var my_playerbject;

      var my_loader:Loader = new Loader();

      my_loader.load (new URLRequest (""));

      my_loader.contentLoaderInfo.addEventListener (event. INIT, onLoaderInit);

      function onLoaderInit(e:Event):void {}

      movArticles.movArticle2.videoPlayerHolder.videoMov 2.addChild (my_loader);

      my_player = my_loader.content;

      my_player.addEventListener ("onReady", onPlayerReady);


      function onPlayerReady(e:Event):void {}

      my_player. SetSize (640,360);



      end of the code

      Any help would be much apreciated, thanks

      Figured it out


      Security.allowDomain ("");

    2. Security Sandbox Violation after upgrade

      I load a local XML data file via HTTPService, error #2123 flash. It worked fine in Flex 2 but after the upgrade to Flex 3, I get the following error:

      Security Sandbox Violation
      Connection to data / act1.xml interrupted - not allowed to file://localhost/./bin-debug/EAL.swf
      [Error CPP faultString = "Error #2148: SWF file file://localhost/./bin-debug/EAL.swf cannot access local resource data / act1.xml."] Only local FaultCode - with system files and confidence of local SWF files can access local resources. ["="InvokeFailed"faultDetail ="null"]

      Then is it someone please help me debug this?

      I put the following in my src directory crossdomain.xml file and it solved the problem on my local machine. I have not tried the online deployment yet.

    3. BitmapData.draw security error

      I paint to MediaContainer bitmap:

      var mediaContainer:MediaContainer = new MediaContainer();

      bitmapData.draw (mediaContainer);

      It works, but when I switch the video, an error occurs:

      SecurityError: Error #2123 flash #2123: security sandbox violation: BitmapData.draw

      cannot access unknown URL. Access granted to any policy files.

      Any ideas?

      Here you go:

      There ways HTTP and RTMP.

      I tried to launch of http:// and file:// - both work fine for me.

      Links within the app are to our production servers.

      Kind regards!

    4. Violation of security sandbox while drawing video of CDN on BitmapData

      Hi all

      I get this:

      Error #2123: Security sandbox Violation: BitmapData.draw

      while I try to draw the image of a video from a server rtmp on a BitmapData object. The solutions I found all applicable to a SWF loaded from another domain. This implies to have the logic in this file. However, I don't see any possibility to place logic in the video and have little access to the video server (WOWZA), which there are several and I strangers to forehand because of the CDN load balancing nature.

      Anyone know of any work autour?

      Thanks in advance,


      If you do not have access to the server and your CA is not willing to help - there is no work around for rtmp streams.

      SERVER-side must be set to Client.videoSampleAccess.

      Note that the ENTIRE display list that contains the video that streams an unauthorized asset with videoSampleAccess is not available for BitmapData.draw.

    5. Breach of security sandbox on Air file


      I have a bunch of air called "test_sandBox'-> will be installed under"c:\program files\ ".

      This "test_sandBox" will load another swf to c:\test\samp.swf. test_sandBox I used to write another function in function. If I want to add something, I'll add the feature on samp.swf and I will udpate in c:\test\, error #2123 flash. So at any price ain't in the need to reinstall new air package. I'm not able to update the samp.swf on "c:\program files\" due to a security issue on windows 7. So I decided to update the samp.swf on c:\test\

      the "test_sandBox.fla" have the following code

      import flash.display.Loader;


      var _defaultLoader:Loader;

      function init()

      {_defaultLoader = new Loader();

      _defaultLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, error #2123 flash, onGameLoadComplete, false, 0, error #2123 flash, true);

      var urlRequest:URLRequest = new URLRequest("C:/digient_casino/samp.swf");

      _defaultLoader.load (urlRequest);


      function onGameLoadComplete(e:Event)


      mc.addChild (_defaultLoader.content);

      var mc1 = MovieClip (_defaultLoader.content);



      the samp.fla have the following code:


      var stageObject:Object;

      function updatePath (path:String, sObj:Object)


      stageObject = sObj;


      mc.buttonMode = true;

      mc.addEventListener (MouseEvent.CLICK, fullScreen);

      function fullScreen(e:Event)


      stageObject.displayState apb error report hatas StageDisplayState.FULL_SCREEN;

      stage.displayState = StageDisplayState.FULL_SCREEN;



      When I run the "test_sandBox'-> she loads the samp.swf and when I press the button fullscreen on the samp.swf it shows the following error

      Security Sandbox Violation

      SecurityDomain 'file:///C:/test/samp.swf' tried to access incompatible context ' app: / test_sandBox.swf.

      SecurityError: Error #2070: security sandbox violation: calling file:///C:/test/samp.swf cannot access stage owned by app: / test_sandBox.swf.

      to flash. display::Stage / get nativeWindow()

      to flash. display::Stage / set displayState()

      at samp_fla::MainTimeline/fullScreen()

      How to solve this problem?

      Thank you


      This article describes the problem you are experiencing:

      In short: change the line

      _defaultLoader.load (urlRequest);


      _defaultLoader.loadBytes (urlRequest);

      Make sure you read the article, why this workaround should only be used during development, because it causes a security risk.

    6. I want to load a clip to a charger and there a colorPicker. I get a * sandBox violation *.

      So I have a built _mc and it works fine until I loaded from an external source.

      Here is the code I have for the _mc to load.

      import flash.geom.ColorTransform;

      -for the bg color picker.

      myColorPicker.selectedColor = 0x6666cc;

      var colorInfo:ColorTransform = myRect_mc.transform.colorTransform;

      myColorPicker.addEventListener (ColorPickerEvent.CHANGE, colorChanged);

      function colorChanged (e:ColorPickerEvent): void {}

      colorInfo.color = myColorPicker.selectedColor;

      myRect_mc.transform.colorTransform = colorInfo;

      myCurrentColor.text = myColorPicker.hexValue;

      -for the text error #2123 flash picker.

      myColorPickerText.selectedColor = 0xffffff;

      var colorInfo2:ColorTransform = textColor_txt.transform.colorTransform;

      myColorPickerText.addEventListener (ColorPickerEvent.CHANGE, colorChanged2);

      function colorChanged2 (e:ColorPickerEvent): void {}

      colorInfo2.color = myColorPickerText.selectedColor;

      textColor_txt.transform.colorTransform = colorInfo2;

      myCurrentColor2.text = myColorPickerText.hexValue;

      -Here's the code for the _mc that makes loading. (I use a ScrollPane as a charger! Loading of the file with the right destination threw

      In past versions of FMS, developers were barred from accessing raw audio and video data over RTMP and had to resort to a number of hacks and proxies to get around the restriction.  As time went by and new versions of the Flash Player were released, a lot of these loopholes were blocked as well.

      With FMS3, there is Client.videoSampleAccess: a property of the Flash Media Server 3 that allows direct access to raw stream data for video use (“audioSampleAccess” for audio).  This can be used for things like producing visual audio spectrums or grabbing a still from a video stream.  It is applied within the onConnect method of the Application server class as demonstrated here:

      appClient.audioSampleAccess = "/"; appClient.videoSampleAccess = "/";

      In the above example, error #2123 flash, the “/” signifies that any streams within the application directory are allowed to be sampled in this way.  You can also specify a semicolon-delimited list of folder names instead if you need to be picky.

      Something I came across today and the whole point of this post: even when you have Client.videoSampleAccess set up properly on Flash Media Server, you will still receive a security sandbox violation error #2123 if the stream data is not available.  This can easily happen if you have a timer invoking BitmapData.draw every few milliseconds on loading content.

      One way to get around this is using NetStatusEvent.NET_STATUS making sure it reports “NetStream.Buffer.Full” before attempting to eth error while getting the stream data.  Depending on what you deh-p7400mp error 17 doing, you can oftentimes check the object recieving the stream data to be sure it is accessible first.  this all seems really obvious now, but threw me for a bit of a loop, initially.

      error #2123 flash


    Leave a Comment