Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Security Sandbox?



I am a novice Flash Programmer and just trying to learn more about this (incredibly) complicated program. Right now I am baffled since my swfs aren’t working as they should. I am starting to fear I’ve been blocked by the infamous Flash security firewall.I am running a swf file locally through a browser in a regular PC with WAMP server installed. My script should be sending variable data back and forth to php but nothing happens. I am able to execute PHP through swf but that’s it. No data goes anywhere. Uploading the same stuff to a regular web host and accessing it via www worked fine.Have I been blocked by flash security settings? Is the configuration a problem? If I access the WAMP/WWW server from the network does it work then? Getting desperate. Don’t want to code HTML although I can make it work easily that way.



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 04-15-2008, 06:27 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Security Sandbox
I've done a site using a generic php contact form. The client insists on hosting it in a friend's webspace, which doesn't run PHP. I've put the contact.swf in my webspace along with the PHP form. When I test it online the site loads the 'contact.swf' but won't then load other pages. When I try it with test movie I get an error message saying
Code:
*** Security Sandbox Violation ***
SecurityDomain 'http://www.biggingerfish.co.uk/contact/contact.swf' tried to access incompatible context 'file:///BGF/Users/petespencer/Desktop/cottages/index.swf'
*** Security Sandbox Violation ***
SecurityDomain 'http://www.biggingerfish.co.uk/contact/contact.swf' tried to access incompatible context 'file:///BGF/Users/petespencer/Desktop/cottages/index.swf'

Any ideas on how I can get round this?

Security Sandbox Violation ?
HELPPPPPPPPPPPP

WHAT IS THAT ???

ARGHHHHHHHHHH I AM SO DEPRESSEDDDDDDDDDDDD

I finally got this "thing" to be in the right place, to move .. etc etc etc .... this is my first time as you may all have gathered ---- I load it on the website ... and my pc goes nuts with all these error notices in a Flash Player Debug Console which gives me hundreds of

*** Security Sandbox Violation ***
SecurityDomain 'C:JulieFLASHTrial CS2sequence4.swf' tried to access incompatible context 'http://digilander.libero.it/csinternational1/TrialCS2NoMusic2noreds.swf'

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhh hhhh

I had debugged the movie beforehand ...

awwwwwwwwwwwwwwwwwwwwwwwwww

I also get
Target not found: Target="char1" Base="_level4.effects"
for a number of char* ----- when i run the movie before publishing



will I ever learn

julia

Security Sandbox Message
I'm loading a slide into a parent swf with loadMovie(). The slide attempts to load XML from the server it resides on.

The slide works standalone, but once it's loaded into the parent I get an alert that says Security Sandbox Domain something or other.

If I add recommended code to the slide
PHP Code:




System.security.allowDomain("http://sin.ou.edu");





it no longer functions.

Both swfs reside on the same server, both are being tested remotely, etc etc.

Any help is greatly appreciated.

Thanks,

Afro

Oh yeah, I'm using MX04

Security Sandbox & LoadMovie
Edit: sorry, double posted the topic can a mod please delete this one.

Security Sandbox & LoadMovie
For the last month or so I have been building a website, we have encountered a few problems with the LoadMovie command failing to actually load the movie (script error on my part) but now we are confronted with a more confusing problem.

to complete the full site, we were asked to integrate the 5 current files into 1 single file because using separate files with getURL controls brought up (if only for a portion of a second) a white background before the correct black was loaded. This was, in the view of our artistic benefactor, intolerable and considering the proffesional look (hah) we are trying to achieve had to be fixed. After asking the designer of our benefactor's previous site (http://www.spencerrowell.com and a couple of others, we were led into a dead end. The only suggestion which seemed plausible was that the default flash background was not black (the colour which needs to appear instead of white) and was causing the problem. Unfortunately all of the files use a default black background, and this is my first (and only non actionscript related) question:

Does anyone know if there is an issue with flash version and background colour? (this question is really just incase there is a simpler way out of question2, as a way to link the pages by URL and not see a white background between pages would make things a whole lot easier)


Back to the point of this forum and topic. After experiencing the problem of the white background appearing between pages, we started using the loadMovie control(function/command.. not sure of the correct term i am in many ways still a total noob) to load the 4 files (3 galleries and a movies page) into the first file, which compromises of 4 randomly moving movieclips which also act as buttons when moused over. After finally getting the buttons to move the player to a loader movie clip, (some dumbass mistakes with _root) I had to learn how to use the loadMovie function properly. With a holder movieclip ready, I tested the file and found all 4 files loaded correctly, though upon loading the file the next morning to fix a few minor design bugs (basically the back button in the files allready on our server linked back to the original version of the file I have been editing to load the gallries and movie page), the file upon testing started throwing security sandbox violations front,left and centre. from looking over the file, there are 2 glaring errors which the sandbox causes:

1. images clicked on from the images scroll in the galleries page do not appear in the main part of the flash movie.

The problem presumably is because the images on the scroll use the gotoAndPlay command, but according to the macromedia document, this should not cause an error as the command is called from within the gallery.swf and executed within the gallery.swf

The images on the scroll in the gallery.swf use the script:

on (press) {
_root.image.gotoAndStop (2)
}

I'm at a loss to see why this causes a sandbox error when the command is executed entirely within the galleries sandbox. (though i may be wrong... that's why its here in help) Originally the most obvious reason for this problem seemed to be the fact that the edited file was a local source and the gallery was from the server. Unfortunately the file has the exact same problems when uploaded to the server as it does when running locally.

2.The movies page dosent start, in test all the movieclips load but when the page tries to run another sandbox error appears.

Like the previous problem, i assumed that being in the same directory on the same server as the movie page would solve the problem... again I was totally wrong.


To load the movies the code;

this.frame.loadMovie("http://www.omnimovi.com/srnew/fla/srcw.swf");

,is used which upon first test let the files load and work fine, before aforementioned waking up to sandbox errors aplenty.

and to put the last few paragraphs as a simple question here is:

Question 2. What can I do to solve these sandbox errors, could it be a server problem, how could i find out if it was a server problem and is there actionscript which will allow my galleries to run properly within my file?

Here is as much technical specs as my feeble mind can discern of what im using for this:

Macromedia FlashMX Professional 2004
Flash Player 7
Actionscript 2.0

the links for the 3 galleries and movie page:

Colour photo gallery:
http://www.omnimovi.com/srnew/fla/srcw.swf
Black & White gallery:
http://www.omnimovi.com/srnew/fla/srbw.swf
Screenprint gallery:
http://www.omnimovi.com/srnew/fla/srsw.swf
Movies page:
http://www.omnimovi.com/srnew/fla/movies.swf

Also, the swf of the current version of the file (SRRM7.swf) czn be found: here and a .zip of the .fla right here

Any help would be really appreciated, im hoping there's some glaring error that someone slightly smarter than I will spot easily *prays*

I also hope this is in the right forum, this is my first post here on flashkit and the errors seemed to be coming from loadmovie so actionscript seemed the best place to ask for help.

sorry for a slightly *ahem* long post, I just really need some help with this, i've searched the forums here and can't seem to find anything quite along these lines. To sum up for those short of attention span:

1. Does anyone know of a way to solve the between pages white background
2. If the answer to 1. was "no" or "impossible", does anyone have a clue why the flash might be causing the sandbox error (even when online) and how might it be fixed.
3. I also wondered if anyone knew a much easier/effective way of approaching this file, and combining it with the other 4 files.

Many thanks, LiNt

Also, yes my organisation of layers in flash sucks and probably many other things to, as i said earlier im a bit of a noob and this is the first website i have ever attempted in flash (or atall for that matter), please be as detailed in criticism/help as you can ^_^

*** Security Sandbox Violation ***
I just finished publishing by site and everything was running smoothly on my local drive, but when I loaded all my files onto my server and tried to preview my flash movie i got this error when trying to load an external swf and jpg:

*** Security Sandbox Violation ***
SecurityDomain '***************************' tried to access incompatible context '**********************************'

* just covering up my file names.

Any suggestions?
Thanks.

Security Sandbox Violation?
Hi,

I am trying to load in an swf onto level2. at the moment just from a local movie - visit_news_intro1

loadMovie("http://www.doitlive.com/items_site/media/flashdemo_swf/news_sec.swf", "_level2");

This movie in turn loads remote external text files into a dynamic text field.

loadVariables("http://www.doitlive.com/items_site/media/flashdemo_text/test1.txt", "_level2");

I have the swf loading in fine into the base movie, and i have the text loading into the news_sec.swf locally but not when that movie has been loaded onto level2.. then I am getting an error message

*** Security Sandbox Violation ***
SecurityDomain 'http://www.doitlive.com/items_site/media/flashdemo_swf/news_sec.swf' tried to access incompatible context 'file:///C|/work/doitlive/demosite/visit%5Fnews%5Fintro1.swf'

I have played around with the paths but cannot get the text to load in. Is it just the targeting that is wrong or sopmething more fundemental. Have done some searches on the security voilation and seems a common problem but cannot find a fix.
any ideas

many thanks

[F8] Security Sandbox Issues
Problem #1
*** Security Sandbox Violation *** SecurityDomain _________ tried to access incompatible context _________
those are blanked out because I forgot what they were. Anyways. I tried doing some searching and I have no idea how to fix this. I'm working with an xml socket connection. I'm trying to run the flash file on my computer. The problem happens when two people are connected and when I attach my pictures for the character. Those are the initial reasons. Then the problem occurs when I try to manipulate a text field that sends data for chatting. The thing is this happens when I'm typing in the text box or even clicking on it. I'm loading

PHP Code:




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





code: System.security.loadPolicyFile("www.typhoonent.com /v_pa2.xml");
System.security.allowInsecureDomain("*");
This code is not on the same server as the socket server. Anyone have any ideas?


Problem #2
This code http://pastecode.org/73 is the php server code. The problem here is the server never sends data automatically. The server only reacts to data sent by flash. Trying to have the server send a remove signal around to remove a player when they leave but this doesn't work. It only sends it when flash sends a move packet to the server. Then the server will send a remove packet. That could be fine but then what happens is the server meshes them together as one packet. So instead of sending |remove| and |move| to move a char it sends it like this: |removemove| Does anyone have an idea why the server wont send a packet around once it detects that someone is gone?

Help With Security Sandbox Violation....
Can some one explained to me why do i get the following message whenever i attempted to load an external movie clip that is located on a server? And is there any solutions to solve this problem??

*** Security Sandbox Violation ***
Connection to file:///F|/Project09/Source/ halted - not permitted from http://192.168.0.88/project09/bgchan...f?uniqueID=170
-- Remote SWFs may not access local files.


Thank a million!

Security Sandbox Error
Has anyone ever seen this when trying to use dropdown mwnus in a scrollpane?

*** Security Sandbox Violation ***
SecurityDomain 'http://www.welcomerunners.com/site/swf/sweepsEntryForm.swf' tried to access incompatible context 'file:///Macintosh%20HD/Users/Mary/projects/JetBlue/FLA/JBHomeB.swf'

[F8] Security Sandbox Violation - Plz Help
*** Security Sandbox Violation ***
SecurityDomain 'http://blablabla' tried to access incompatible context 'file://site.swf'


I have a gallery that isnt loading, its called and loads into another swf, when all the preloaders load, i get this Security Sandbox Violation. the files both work when i export them and run on there own

Security Sandbox Violation
Anyone have a work around for this? I am trying to load a .swf from a friends site into a current .swf that is currently up on the site, but i get an error as stated above. *** Security Sandbox Violation ***


I found a site online that offers a workaround for this, but the page doesn't load *doh..

any ideas?

thanks

kris

Security Sandbox Error...
*** Security Sandbox Violation ***
SecurityDomain 'file:///C|/Projects/MediaManager/src/main.swf' tried to access Player UI context

it happens on a line of code that says:


Code:
this.stage.focus = ioFocus;
where ioFocus is of the type InteractiveObject. It only seems to happen when ioFocus is null...why would setting the stage's focus object to null cause a sandbox error?

Security Sandbox Violation:
Can anyone explain to me Security sandbox violation?
and how to get rid of this error?

I tried using a crossdomain.xml

I've also tried

ActionScript Code:
var context:LoaderContext = new LoaderContext();
    context.checkPolicyFile = true;

    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
       
    var request:URLRequest = new URLRequest("http://tarafenton.com?myXML=1");
    xmlLoader.load(request, context);
But I get another error

Code:
1137: Incorrect number of arguments. Expected no more than 1.

Problem With Sandbox Security
Hi I have made a swf and put it on my sever. The swf loads a image from other sever. The problem is that I get this error : " Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.mydomain.ro/flspeedtest.swf cannot load data from http://seconddomain.ro/picture2.jpg?1198867462343.
at Master$iinit() ".
If I test the swf locally it works.
What should I do to fix the problem?
Need HELP!!!
Thanks to all how read this.

Security Sandbox Violation
I am loading a flashpaper into through an swfloader, which loads fine. But I cannot print or click any link within the document. I get the following message:

Debugging Error:

Code:
*** Security Sandbox Violation ***
Connection to javscript:window.print(); halted - not permitted from http://brightwindows.exormedia.com/forms/temp/BuEbhO.swf
-- This is due to the value of 'allowNetworking'.
Any idea?

Problem With Sandbox Security
I get following error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://192.168.3.10/TicTacToe/TicTacToe.swf 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:

<?xml version="1.0"?>
<!-- http://192.168.3.10/TicTacToe/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>

I tried also to do this in my .as file:

Security.loadPolicyFile("http://192.168.3.10/TicTacToe/crossdomain.xml");
flash.system.Security.loadPolicyFile("http://192.168.3.10/TicTacToe/crossdomain.xml");
Security.allowInsecureDomain("*");
flash.system.Security.allowInsecureDomain("*");

This code try to connect to my Server:

var socket = new XMLSocket();
socket.connect("192.168.3.5", 4854);

I have no idea how I can solve this problem

I hope anybody can help me here with my problem.

With best regards,
Alex

Sorry for my bad english.

Security Sandbox Hates Me
Hi all,

I'm looking for some help over coming a security sandbox violation error #2048
when trying to access amazon.

I put a cross domain script on the amazon space to start with


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

That didnt work.

I then tried giving my flash movie permission to access the amazon domain


ActionScript Code:
flash.system.Security.allowDomain("http://s3.amazonaws.com/")
            flash.system.Security.allowDomain("http://s3.amazon.com/")

var amazonXML:URLRequest = new URLRequest(MixTrackXML);
            var amazonXMLLoader:URLStream=new URLStream();

            amazonXMLLoader.load(amazonXML);
            amazonXMLLoader.addEventListener(Event.COMPLETE,amazonXMLLoaded);


I still am getting the sandbox violation error and I dont understand why.

Would anybody be able to point out to me if I'm missing some code or doing something stupid?

Do I understand this correctly.

If my flash movie wants to access a someDomain, then you must place the crossdomainpolicy file on someDomain?

Also if I tell my flash movie to allowDomain (someDomain) my flash movie should be able to connect to someDomain?

Thanks
dub

Security Sandbox Error
I am trying to do the following yet I am receiving a security sandbox error. I'll explain my situation in detail:

I am hosted on server A and would like to connect to server B on port 13000 using the URLLoader / URLRequest classes.

Obviously, locally everything works fine, when deployed online it doesn't work.

Server B on port 13000 does not have a web server so I can't deploy crossdomain.xml on the root of server B at port 13000.

I have tried to set up a socket policy server using Zapp Monkey FPS server (http://blog.zappmonkey.com/2008/01/1...policy-server/) on server B at port 843 but it doesn't seem that Flash was connecting with the policy file server when trying to access server B on port 13000.

I have read that Flash checks only for the socket policy file server if you are using Socket / XMLSocket classes.

Anybody can guide me to what I need to do to be able to successfully access server B on port 13000 from server A using the URLLoader Class?

*** Security Sandbox Violation ***
I got this error today working on one of my fla's

Quote:




*** Security Sandbox Violation ***




Has anyone every came across this?

I did try top search AS forums but i keep getting this error:

Quote:




Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/virtual/actionscript.org/html/forums/search.php3 on line 795




cheers
Paul

Security Sandbox Violation
the following code doesn't work and produces the error below:

on (release) {
stopDrag();
getURL("Javascript.openNewWindow('http://www.macromedia.com','MMhome', 'width=550','height=400');");
}

*** Security Sandbox Violation ***
Connection to Javascript.openNewWindow('http://www.macromedia.com','MMhome', 'width=550','height=400'); halted - not permitted from file:///C|/Documents%20and%20Settings/Human%20Media%20Lab/My%20Documents/Yin/anotherwindow.swf

however, getURL("

Security Sandbox Violation ?
I made a video and it does not work when I upload it to our ftp. Testing the movie works fine, so does publish preview>flash. However I cannot get it to work when I publish preview> default (html). I get a blank screen - no skin even. When I upload to our ftp and attempt to view the html, I do see a skin but no video. The bottom of my browser(Safari) says "There was one error opening the page. For more information, choose activity from the Window menu" When doing this I notice that the .flv is 'not found' But I double-checked and the .flv is in the same folder as the rest of my components (.swf, .fla, .mov, .html, etc). So I went back to the .fla and did a 'debug' and I get this:

Attemping to launch and connect to Player using URL /Volumes/PUBLIC/Kirsten Vandenhouten/Misc. Projects/Test site/Test3/test4.swf
[SWF] Volumes:PUBLIC:Kirsten Vandenhouten:Misc. Projects:Test site:Test3:test4.swf - 106314 bytes after decompression
*** Security Sandbox Violation ***
Connection to nameoffile.flv halted - not permitted from file:///Volumes/FOLDER/sub_folder/folder/folder/folder/nameoffile.swf
SecurityError: Error #2148: SWF file file:///Volumes/FOLDER/sub_folder/folder/folder/folder/nameoffile.swf cannot access local resource nameoffile.flv. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.net::NetStream/play()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_play()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load()
at fl.video::VideoPlayer/load()
at fl.video::FLVPlayback/fl.video:FLVPlayback::doContentPathConnect()
Cannot display source code at this location.

Can anyone help? I'm new to flash and have been searching for an answer for over a week with no luck.

Thanks!

Sandbox Security Error?
I have a site that I've migrated to a VPS hosting account about the same time the new Flash player came out so I cannot nail down the problem. It's an upload/downloading portal for a client to connect to his clients using a control panel, in Flash.

It used to upload and download fine. However I had to move it to a VPS server to allow for large uploads. It uploads fine still but now it doesn't download anything uploaded. I get a sandbox security error. I have a crossdomain file in place to allow access from any domain....

Ideas?

Security Sandbox Problems
Hi, I am a bit new to the whole actionscript thing but am trying to include something on my website with buttons which can load swf files into it. This works fine with locally hosted files using

this.createEmptyMovieClip("Space",2);
setProperty(Space, _x, 0);
setProperty(Space, _y, 100);
loadMovie("

Security Sandbox Error
I keep getting this sandbox violation when I try and stream this video using NetStream and NetConnect. I'm getting the path from an XML file. If i just pop the path into an FLVPlayback component, it works just fine. Any Ideas?

Edited to hide IP.







Attach Code

*** Security Sandbox Violation ***
Connection to "rtmp://myIPAddress/mystreamingvideos/stafford.flv" halted - not permitted from file:///Macintosh%20HD/Users/dzedward/Desktop/seminarVideo/newSkin.swf
SecurityError: Error #2147: Forbidden protocol in URL "rtmp://myIPAddress/mystreamingvideos/stafford.flv".
at flash.net::NetStream/play()
at MethodInfo-53()
at MethodInfo-40()
at flash.net::NetConnection/connect()
at MethodInfo-39()
at MethodInfo-54()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

Sandbox Security Problem
Hi,

We are developping animations that we usually debug and test inside the Flash CS3 editor. We meet at the moment a difficulty that we are unable to solve.

We compile and test an animation from a local drive. The generated SWF load several movieclips from our Apache server using an "http//..." URL.

When the loaded SWF try to initialize, they have to access to the main movie properties (the local one). This does not works but gets the Flash editor output window full with security messages like this :

"SecurityDomain 'http://rpnet-tdfbynet.dvintranet1.intranet.tdf.fr/application...' tried to access to incompatible context 'file:///F|/www/atrium%2Dtdfbynet/src/application...'

This works properly if the main animation is tested from the server inside a browser (ie. when the main and the loaded SWf come from the same domain).

This project is old now and we still publish it for Flash 6 plug-in. It is written with AS1.

We tried several System.security.allowDomain() actions but none of them solved our problem.

Since it is quite time-wasting to test our animation in a browser rather than in the flash editor, do anybody can help us telling what is wrong ?

Thanks for your attention, sincerly yours,
F. Rigaudie - TDF - France

Security Sandbox Violation
Apparently, I'm getting this error whenever i have a external flash online communicate with a local flash projector. is there a way to fix this?

Security Sandbox Violation
Can anybody help me?? I subscribe to MLB.com and watch live games and highlights there. I have no problem streaming games but when I try to watch highlights I get this error and the media player will NOT load. I'm very confused and have no idea on how to fix this issue, MLB has no idea what to do.

Thank you for taking the time to help me.



Adobe Flash Player 9

An ActionScript Error has occured

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mlb.mlb.com/shared/flash/ads/video/InStreamShell_AS3.swf?v=2 cannot load data from http://ad.doubleclick.net/pfadx/mlb.mlb/mlb;page=media;sect=player;match=videolanding;pos=1;sz=512x288;tile=1;ord=1218487262453.
at com.adcontroller.instream.shell::DartInstreamAd/load()
at com.bamnet.flvplayer::DartAd/handle_adcontroller_load()
at com.adcontroller.instream::InStreamAdController$/classLoadedHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.bamnet.utils::ClassLoader/completeHandler()

Security Sandbox Error
I am trying to access flv from flash media server which is in my pc..F:/FlashServer/.

nc.connect ("rtmp://localhost/vod/");

its throwing an error "SecurityError: Error #2123: Security sandbox violation: http://127.0.0.1/flexcfm_login/KMG_TV/KMG_TV.swf cannot access rtmp://localhost/vod/. No policy files granted access."

http://127.0.0.1 : it is coldfusion server ip(installed in my pc).


I put an crossdomain.xml file in F:/FlashServer/

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM

"

Security Sandbox Violation
I've got a flash file located on one server and the page that's using it with the usual embed/object tags. The flash file needs to call a javascript function in that page, but whenever it tries to, I get a sandbox security violation, telling me the swf file can't access the page.

I've been assured that the proper crossdomain.xml files have been created so it "can't possibly" be that, and they may be right. What could cause this problem? What should I be looking for?

Thanks for any help.

Security Sandbox Error
I am trying to use a swf to send emails from my webserver. All the code to send the email is in the swf in AS3, an external script is not required. I have tried the swf locally and I can send email fine, but when I upload it I get a security error. It mentions that it could not find a socket policy file, I contacted my webhosts and even pointed them to a url;

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html

This seems to be related to the latest flash player, if anyone could offer any advice as to what I could tell the support team at my webhosts, I would be very grateful, I am having a difficult time getting them to understand the issue!

Thanks

Neil

Security Sandbox Violation
I'm new here as well as to flash.This forum has been a great help to me! Rather than boring you with my complete blown out problem I would like to ask someone about The "security sandbox violation" I'm getting. I was wondering if it's dependent on flash mx 2004 or if it is caused by the flash player you export your movies with. I have tried the workaround and it hasn't helped. This may seem a little confusing but I guess that explains my heads state right now. Thanks for any reply!

Security Sandbox Error
i have this problem....thanks for help so far guys....where I can't get an external swf to play a frame in my main movie.......it should be straightforward....i.e. _rootgotoAndPlay(xx) etc....

It doesn't work...usually it just does nothing...

I retried this morning and got the error message.....

could it be that my loaded swf can't talk to my main movie because it trying to access it from a different domain?

Any ideas? If this is right how do I get around it ?

I've tried to open the external file in my pc ...but mx2004 won't see it...it says
"can't open url c:/ocume%20/ebsit%20...etc...

thanks in advance

jason

***Security Sandbox Violation***
Howdy,

I have a movie_a that is loading a movie_b from my server that has a small script on it that is triggering this little warning?????

It only gives me this little diddy when i am testing in flash?????

*** Security Sandbox Violation ***
SecurityDomain 'http://www.jduckworth.com/assets/nar_gallery/nar_gal_2.swf'
tried to access incompatible context ...


here is the code that is triggering the warning:

on(press){
gotoAndStop("pic");
}
on (rollOver) {
startDrag(caption, true);
caption.words = "[x]";

_root.x = 1;
}
on (rollOut) {
this.x = 0;
caption.words = "";
}

seems very simple but I am not getting it... the code is functioning properly but I get the warning ONLY when testing in Flash.... any help you all can offer would be MUCHO APPRECIATED!!

JK

Security Sandbox Violation ?
So i have been getting this error and others like it and i'm not too sure what it means. This only happens when i test the about.swf locally, but when i get this error something always doesnt work online correctly.

It looks like my external swf is trying to access a local file on my computer but im just not sure on how to fix this issue

*** Security Sandbox Violation ***
SecurityDomain 'http://www.irenamedavoy.com/flash/text2.swf' tried to access incompatible context 'file:///H|/IrenaMedavoy%20Design/about.swf'

All my problems lately are kinda related so when i finally figure out what i screwed up so horribly things will hopefully get better for me.

FLA FILES

_infected

*** Security Sandbox Violation ***
THIS IS MY ERROR TRACED WHEN I CLICK IN ONE BUTTON:


Code:
*** Security Sandbox Violation ***
SecurityDomain 'http://localhost/www/midiazero/flash/sobre.swf' tried to access incompatible context 'file:///D|/www/midiazero/flash/main.swf'
SHOW THIS ERROR WHEN I EXPORT THE MAIN MOVIE AND CLICK IN BUTTON THAT LOADMOVIE EXTERNAL MOVIE. BUT WHEN I CLICK IN OTHER BUTTON W/ SAME FUNCTION WORK FINE.

THIS IS MY FUNCTION:


Code:
function preload(arq, clip, color) {
bg.colorTo(color, 2);
loadMovie(path + arq, clip);
clipatual.alphaTo(0, 1);
clipatual = clip;
//#
textinfo.tween("_x", 620, 1.5, "easeInQuart");
textinfo.tween("_y", -377, 1.5, "easeInQuart");
//#
onEnterFrame = function() {
var loadcc:Number = Math.round(clip.getBytesLoaded());
var totalcc:Number = Math.round(clip.getBytesTotal());
var percentcc:Number = ((loadcc/totalcc)*100);

if (loadcc < totalcc) {
loader.startDrag();
loader.alphaTo(100, 2);
loader.bar._width = percentcc;
clip.stop();
clip.alphaTo(0, 2);
}
// trace(int(percentcc));
if (loadcc == totalcc) {
loader.stopDrag();
loader.alphaTo(0, 2);
clip.start();
clip.alphaTo(100, 2);
//#
delete onEnterFrame;
}
}
}
AND THIS IS THE CODE FROM EXTERNAL FILE THAT SHOW THE ERROR:


Code:
//path = "http://www.midiazero.com/flash/";

path = "";
Stage.align = "TL";
#include "mc_tween2.as"
//#
large._alpha = 0;
large.useHandCursor = false;
//#
var xmlMenu:XML = new XML();
xmlMenu.ignoreWhite = true;
xmlMenu.load(path + 'data.xml');
xmlMenu.onLoad = function() {
var color:Array = ["0x99CC00","0x336666","0xffcc00","0x465E68"];
var ylocal:Number = 0;
//#
qtd = this.childNodes[0].childNodes.length;
for (i=0; i<qtd; i++) {
var btn = but.duplicateMovieClip("but"+i, i);
btn.portnom = this.childNodes[0].childNodes[i].childNodes[0].firstChild.nodeValue;
btn.imagemp = this.childNodes[0].childNodes[i].childNodes[1].firstChild.nodeValue;
btn.portink = this.childNodes[0].childNodes[i].childNodes[2].firstChild.nodeValue;
btn.portinf = this.childNodes[0].childNodes[i].childNodes[3].firstChild.nodeValue;

// LOCALIZACAO

btn._x = 10
btn._y = ylocal*130;
ylocal ++;

// INFO DO BOTAO

btn.imagem.loadMovie(path+"imagens/" + btn.imagemp);
btn.texto.text = btn.portnom;

// FUNCAO DO BOTAO

btn.onRollOver = function() {
this.alphaTo(50, 1);
};

btn.onRollOut = function() {
this.alphaTo(100, 1);
};

btn.onRelease = function() {
getURL(btn.portink);
};

};
};
//#
large.onRelease = function() {
this.alphaTo(0, 1);
};
//#
stop();
ANYONE CAN HELP ME ?

Security Sandbox Violation
Can someone explain to me why this is screwing up

I am loading a swf from domain 1. This swf is accessing another domain (a jpg), and I encounter this error.

I tried fiddling around with flash.system.Security but I still can't seem to get it working.

Is this something I have to change in my swf, or their swf?

Security Sandbox Violation?
Ok. Trying to load a swf and manipulate it's contents:


Code:
public class Main extends MovieClip
{

private var splashScreenStage:SplashScreen;

public function Main():void
{
var request:URLRequest = new URLRequest("assets/splash.swf");
var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);

var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, splashLoaderComplete);
loader.load(request, context);

}

private function splashLoaderComplete(evt:Event):void{

splashScreenStage = evt.target.content as SplashScreen;
addChild(splashScreenStage);
}
}
But I get a security error. Funny thing though, if I place the swf I want to load (splash.swf) into the root directory, everything loads fine.

So here's the environment I'm authoring in:

Flash Develop 3 Beta 2
Actionscript Project
compiling with Flex 2.01 SDK

I just don't understand the sandbox violation stuff. Never delved into it until now. Could someone offer some direction?

Security Sandbox Violation
My game is in AS3
and it sends highscores to a server with a php script using URLREQUEST and URLLOADER

When i put the game's swf in servers which are not the highscore server i get the following error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: cannot load data from .


What should i do?

Thanks

Security Sandbox Violation
im trying to implement kongregate's API but i always get this error when i use the load function on the Loader object to load the API.

*** Security Sandbox Violation ***
Connection to http://www.kongregate.com/flash/API_AS3_Local.swf halted - not permitted from file:///C|/Documents%20and%20Setting...flash/game.swf


when it pops up this error they send me to this link http://www.macromedia.com/support/do...anager04a.html
I laready set ti to always accept from every site and i already added both the site and my .swf file to the trusted sites but it still doesnt work.
any ideas?

EDIT: I figured this only happens when i test my movie with debugger (ctrl shift enter) but it doesnt happen when i test without debugger (ctrl enter)

Security Sandbox Error
I am trying to access flv from flash media server which is in my pc..F:/FlashServer/.

nc.connect ("rtmp://localhost/vod/");

its throwing an error "SecurityError: Error #2123: Security sandbox violation: http://127.0.0.1/flexcfm_login/KMG_TV/KMG_TV.swf cannot access rtmp://localhost/vod/. No policy files granted access."

http://127.0.0.1 : it is coldfusion server ip.


I put an crossdomain.xml file in F:/FlashServer/

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM

"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="127.0.0.1" /><allow-access-from

domain="http://127.0.0.1/flexcfm_login/KMG_TV/bin-debug/" /><allow-access-from domain="*"

/>
</cross-domain-policy>

Still this error is coming ..

Any help is appreciated.

Security Sandbox Violation
I'm new here as well as to flash.This forum has been a great help to me! Rather than boring you with my complete blown out problem I would like to ask someone about The "security sandbox violation" I'm getting. I was wondering if it's dependent on flash mx 2004 or if it is caused by the flash player you export your movies with. I have tried the workaround and it hasn't helped. This may seem a little confusing but I guess that explains my heads state right now. Thanks for any reply!

Security Sandbox Error
i have this problem....thanks for help so far guys....where I can't get an external swf to play a frame in my main movie.......it should be straightforward....i.e. _rootgotoAndPlay(xx) etc....

It doesn't work...usually it just does nothing...

I retried this morning and got the error message.....

could it be that my loaded swf can't talk to my main movie because it trying to access it from a different domain?

Any ideas? If this is right how do I get around it ?

I've tried to open the external file in my pc ...but mx2004 won't see it...it says
"can't open url c:/ocume%20/ebsit%20...etc...

thanks in advance

jason

***Security Sandbox Violation***
Howdy,

I have a movie_a that is loading a movie_b from my server that has a small script on it that is triggering this little warning?????

It only gives me this little diddy when i am testing in flash?????

*** Security Sandbox Violation ***
SecurityDomain 'http://www.jduckworth.com/assets/nar_gallery/nar_gal_2.swf'
tried to access incompatible context ...


here is the code that is triggering the warning:

on(press){
gotoAndStop("pic");
}
on (rollOver) {
startDrag(caption, true);
caption.words = "[x]";

_root.x = 1;
}
on (rollOut) {
this.x = 0;
caption.words = "";
}

seems very simple but I am not getting it... the code is functioning properly but I get the warning ONLY when testing in Flash.... any help you all can offer would be MUCHO APPRECIATED!!

JK

Security Sandbox Violation?
When I create a Window component with Macromedia Flash MX Professional 2004 in a Flash Document and I fill in as "ContentPath" in the Parameters "http://www.google.com" I expect I normally get a window with the Google site in it but when I try it I get this message:

-------------------------------------------------------
*** Security Sandbox Violation ***
SecurityDomain 'http://www.google.com' tried to access incompatible context 'file://C:Documents and SettingsJanLocal SettingsApplication DataMacromediaFlash MX 2004enConfigurationTMPbqe13y4mh0..swf'
-------------------------------------------------------

What the hell does this mean and how can I stop this?

Thanks for reading my post, I appreciate your answer.

Security Sandbox Error
I am loading text and pictures dynamically by buttons I have set up.
One button loads a picture and text from a text file. The other does the same. They work, but when I press one then press the next I get a error : " Security Sandbox Error " with more behind it.

Can someone tell me what this means??

*** Security Sandbox Violation ***
Hello
My name is Sanumi.I want to aks you to help me to solve this problem.
I want to make photo galley by loading external Swf files that are my web server.
On scene in Flash I have one holder and 4 buttons.Whar I click on buttons in holder should load the external swf file.
But when i test movie by hitting ctrl+enter on output window i keep and keep receiving this message about million times
This is the message :

*** Security Sandbox Violation ***
SecurityDomain 'http://www.mydomein.com/flashmovie.swf' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/user/Desktop/flashsite.swf

When i click on buttons Flash is loading the external files but is slow and have interferences.'When I click on second button interferences are bigger and bigger.Ant the message below i am keep receiving.
I am loading external files with loadMovie().
I have try with tutorial on main page for loading external files but same message is appearing again.
Please help me

Problem With Sandbox Security
Hi I have made a swf and put it on my sever. The swf loads a image from other sever. The problem is that I get this error : " Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.mydomain.ro/flspeedtest.swf cannot load data from http://seconddomain.ro/picture2.jpg?1198867462343.
at Master$iinit() ".
If I test the swf locally it works.
What should I do to fix the problem?
Need HELP!!!
Thanks to all how read this.

[F8] Suppress Security Sandbox Violation Possible?
Is it possible to supress the Security Sandbox Violation errors generated by Flash 8?

Copyright © 2005-08 www.BigResource.com, All rights reserved