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




Sandbox Violation When Saving MovieClip To Shared Object



I have a Library symbol called Panel. My movie allows the user to create and organize many Panels on the stage. I save them to a SharedObject so the user can pick up where he left off.

Panel extends MovieClip, which has the property transform. If I simply use registerClassAlias("Panel", Panel), I get a jumble of errors about converting generic Objects to SoundTransforms, ColorTransforms, etc.. As long as I don't try to access Panel.transform, there is no need for concern; however, I need to allow the user to change the color of the panel. The easiest way to do this ought to be accessing the transform property, but I am running into problems.


Code:
registerClassAlias("Transform", Transform); // errors "Argument count mismatch. Got 0, expected 1"

registerClassAlias("Transform", flash.geom.Transform)) or registerClassAlias("Transform", Class(Transform) //errors"*** Security Sandbox Violation *** SecurityDomain "myMovie.swf' tried to access Player UI context"
For now, I can create Shapes in different colors to workaround the problem. There has to be a better way though. What is this about accessing the Player UI context? How can I save flash.geom.Transform to a SharedObject?



FlashKit > Flash Help > Actionscript 3.0
Posted on: 12-27-2007, 12:23 AM


View Complete Forum Thread with Replies

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

Sandbox Violation
Hi i'm trying to create a testing machine which isn't connected to the internet I have the webserver configured correctly to use just localhost but when i double click on the .swf i get a security sandbox violation that says to let this application communicate with this internet enabled location click settings......but when i click settings it trys to take me to the internet to change flash settings but that isn't available since my testing pc is not connected to the internet how do i change flash settings without being connected to the internet?

Possible Sandbox Violation?
...or just horrid actionscripting on my part?

I have 2 swf files and some flv files that are pulled in from somewhere else. Like this:

https://node1.mydomain.com/main.swf
https://node1.mydomain.com/videoplayer.swf
htpps://node2.mydomain.com/videofile.flv

The main.swf sets a global variable of the path/URL that the videoplayer.swf uses to load up the flv video file. The videoplayer.swf is loaded in level 2 using loadMovie into main.swf. Everything works fine in our authoring tool but when the page is pushed live the flv videos don't load. However, I put a download button in the videoplayer.swf and that works. It downloads (getURL) the file it needs to play so it's not a path spelling/syntax issue. It's just not loading and playing the file. I'm using the built-in components of Flash 8 Professional for video playback and also the slider bar component. I also unload and reload the videoplayer.swf each time the user selects a new video title (using loadMovie and unloadMovie) - always into level 2.

The authoring tool is set up with the same structure as above except the node1 name is different; node2 remains the same name always.

Any thoughts why this isn't working. Sorry I can't provide a link or sample file. This is private company stuff - Shhhhhhh!

Sandbox Violation
Ok, I've been working on this problem for almost a week now and now I get headaches just thinking about it.

My SWF worked fine untill I switched the externally loaded images from loading from a subdirectory to being streamed via PHP. Like this (http://localhost/getFile.php?type=im...&file=1_5.jpg).

It works in the browser and it works when viewing it in Flash 8. The images are loading from localhost and into my SWF, but whenever I move my mouse within the Flash environment i get the dreaded Sandbox Violation. And it makes it almost impossible to develop anything since it slows the movie down to 1/3 frames pr. sec.

I have tried adding "http://localhost/" to my trusted sites via the Flash Settings Manager and used "System.security.allowDomain("http://localhost/", "127.0.0.1");" as the first thing in my AS - but still no luck. Switching the "local playback security" between "Access network only" and "Access local files only" makes no difference whatsoever. I've read the entire "Macromedia Flash Player 8 Security whitepaper" wich tells me all i have to do is add a System.security.allowDomain but that simply doesn't make anything better.

I hope somebody has an answer so I get to keep my hair

TIA

//Summer

Sandbox Violation Help Please
Hi!

I'm building a flash fullscreen slideshow that populates with an xml file. The flash is parsing the xml by calling a variable in the flashvar of the object tag in the html. Everything works great. I even put it up on my test site and everything is working great. But when I changed the image path in the xml to have full url from a crossdomain, i get a sandbox error. But the strange thing is when i load the site on my server, I can see the images being loaded, but the flash is not seeing my code to resize my UILoader and to position all the thumbnails. You can see my flash site here: my flash sample

What I've tried... I tried including the crossdomain.xml.

Code:
import flash.display.LoaderInfo;
import flash.system.Security;
var flashVars= this.loaderInfo.parameters;

Security.loadPolicyFile("http://mydomain.com/crossdomain.xml");
photoViewer.loadAllXMLData(flashVars.xmlUrl);
photoViewer.loadAllConfigData(flashVars.configUrl);
I've also import

Code:
import flash.system.LoaderContext;
myContext = new LoaderContext();
myContext.checkPolicyFile = true;

var urlReq:URLRequest = new URLRequest(images[currItemNum]);
mainPicLoader.load(urlReq, myContext);
This has not helped! Any ideas? Please help! Thanks so much

Haej

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

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!

[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

What Is This : *** Violation De La Sécurité Sandbox***
Hi,

I reallllyyy need help!
I made a swf file that loads XML with flash MX. It worked well. Now, I publish my movie with flash 8 and I get this error when online:

Code:
*** Violation de la sécurité Sandbox***
And the XML failed to load...
But offline, it works right and loads the xml... what is that means and how am I supposed to make it work online.
Is it a problem from flashplayer or server?

Thanks for your help!!!

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

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?

Asfunction - Sandbox Violation
hi,
hoping someone may be able tohelp wiht this:

I am building a movie whihc uses html textFiles; I would like to use asfunction to enable some of the links in the html to enable some AS2 code.

I currently have:

function gifts(){
trace("got here");
}

in the appropriate movie keyframe. In the html file I have:
<a href="asfunction:gifts">Sponsor</a>

However, I receive a "security sandbox violation" as the output.

I'm not sure if i'm using asfunction correctly but at present this error message is my forst hurdle.

Thanks in advance
t

*** 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!

SecurtyError Sandbox Violation
SecurityError: Error #2149: Security sandbox violation: file://XXXXHello.swf cannot make fscommand calls to <unknown> (allowScriptAccess is ).
at FSCommand$/_fscommand()
at global/flash.system::fscommand()

I have a swf movie (from Flex) and when calls to fscommand this error appears.
This movie is inside a FlashPlanel (JFlashPlayer library) inside a JApplet.
Only happens with IE, with Firefox it works ok:
- In IE 6 the error doesn't happen, but the applet does'n receive fscommand.
- In IE7 this error appears.
- In Firefox works fine and the applet receive the fscommand correctly

I tried to put inside a webserver, locally, signing the jar, grant allpermission to applet, with System.allowDomain("*") and i don't know how to solve it.

Thanks

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

SecurtyError Sandbox Violation
SecurityError: Error #2149: Security sandbox violation: file://XXXXHello.swf cannot make fscommand calls to <unknown> (allowScriptAccess is ).
at FSCommand$/_fscommand()
at global/flash.system::fscommand()

I have a swf movie (from Flex) and when calls to fscommand this error appears.
This movie is inside a FlashPlanel (JFlashPlayer library) inside a JApplet.
Only happens with IE, with Firefox it works ok:
- In IE 6 the error doesn't happen, but the applet does'n receive fscommand.
- In IE7 this error appears.
- In Firefox works fine and the applet receive the fscommand correctly

I tried to put inside a webserver, locally, signing the jar, grant allpermission to applet, with System.allowDomain("*") and i don't know how to solve it.

Thanks





























Edited: 10/24/2008 at 04:43:23 AM by oknoy yonko

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

Sandbox Violation In Flash 8 XML
Code:
delay = 6000;
//-----------------------
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;//listing_image
description[i] = xmlNode.childNodes[i].childNodes[21].firstChild.nodeValue;
bed[i] = xmlNode.childNodes[i].childNodes[9].firstChild.nodeValue;
bath[i] = xmlNode.childNodes[i].childNodes[10].firstChild.nodeValue;
garages[i] = xmlNode.childNodes[i].childNodes[11].firstChild.nodeValue;
price[i] = xmlNode.childNodes[i].childNodes[12].firstChild.nodeValue;
address[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
city[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
_state[i] = xmlNode.childNodes[i].childNodes[7].firstChild.nodeValue;
zip[i] = xmlNode.childNodes[i].childNodes[8].firstChild.nodeValue;
agent_name[i] = xmlNode.childNodes[i].childNodes[13].firstChild.nodeValue;
agent_address[i] = xmlNode.childNodes[i].childNodes[14].firstChild.nodeValue;
agent_city[i] = xmlNode.childNodes[i].childNodes[16].firstChild.nodeValue;
agent_state[i] = xmlNode.childNodes[i].childNodes[17].firstChild.nodeValue;
agent_zip[i] = xmlNode.childNodes[i].childNodes[18].firstChild.nodeValue;
agent_email[i] = xmlNode.childNodes[i].childNodes[19].firstChild.nodeValue;
agent_image[i] = xmlNode.childNodes[i].childNodes[21].firstChild.nodeValue;



}

firstImage();
} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.prodigylistings.com/prodigy_featured.cfm");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}

};
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = true;
if (picture._alpha<100) {
picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
agent_image._alpha = 100;
agent_image.loadMovie(agent_image[p], 1);
desc_txt.text = description[p];
garages.text = garages[p];
bath.text = bath[p];
bed.text = bed[p];
zip.text = zip[p];
_state.text = _state[p];
city.text = city[p];
address.text = address[p];
price.text = price[p];
agent_name.text = agent_name[p];
agent_address.text = agent_address[p];
agent_city.text = agent_city[p];
agent_state.text = agent_state[p];
agent_zip.text = agent_zip[p];
agent_email.text = agent_email[p];
picture_num();
slideshow();
}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
agent_image._alpha = 100;
agent_image.loadMovie(agent_image[p], 1);
desc_txt.text = description[p];
garages.text = garages[p];
bath.text = bath[p];
bed.text = bed[p];
zip.text = zip[p];
_state.text = _state[p];
city.text = city[p];
address.text = address[p];
price.text = price[p];
agent_name.text = agent_name[p];
agent_address.text = agent_address[p];
agent_city.text = agent_city[p];
agent_state.text = agent_state[p];
agent_zip.text = agent_zip[p];
agent_email.text = agent_email[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
agent_image._alpha = 100;
agent_image.loadMovie(agent_image[p], 1);
desc_txt.text = description[p];
garages.text = garages[p];
bath.text = bath[p];
bed.text = bed[p];
zip.text = zip[p];
_state.text = _state[p];
city.text = city[p];
address.text = address[p];
price.text = price[p];
agent_name.text = agent_name[p];
agent_address.text = agent_address[p];
agent_city.text = agent_city[p];
agent_state.text = agent_state[p];
agent_zip.text = agent_zip[p];
agent_email.text = agent_email[p];
slideshow();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function slideshow() {

myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {

clearInterval(myInterval);
if (p == (total-1)) {

p = 0;
firstImage();

} else {

nextImage();

}

}

}
WHen I test it, everything works great, except for the agent_images variable. i get this error in the output:

*** Security Sandbox Violation ***
Connection to file:///C|/Documents%20and%20Settings/jpb/Desktop/Flash/final/undefined halted - not permitted from http://www.mlsfinder.com/mn_rmls/_ag...69729cc976.jpg
-- Remote SWFs may not access local files.

Is this something that's in the xml, or is there a way to code around this in Flash 8?

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

Insane Sandbox Violation
I'm developing this app locally on a local apache server. All of my swf files are in /swf/ directory all php files are in /php/ directory. I have other swfs loading php generated xml all of the site. Now I started developing a new file and ran into this error, which comes up every time I roll over a button. The BS thing is that that init.php file is never loaded within this loaded swf.

I have this line set in my global include file
System.security.allowDomain("http://localhost");

I get this error over and over every time i roll over any of my buttons.

SecurityDomain 'http://localhost/php/users/init.php?userName=luke' tried to access incompatible context 'file:///C|/Program%20Files/EasyPHP1%2D8/www/travelog/swfs/base.swf'

When I load http://localhost in browser the file doesn't funciton properly, but I can't be sure if it is because of the sandbox issue.

Thanks for any ideas.

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.

Sandbox Violation Revisited
I have already read this post:
Security Sandbox Violation????

But I just wanted to get a little more information. My error currently reads:




*** Security Sandbox Violation ***
SecurityDomain 'http://tsc.haleypro.com/content/featurePane.swf'
tried to access incompatible context
'file:///C|/Documents%20and%20Settings/todd.HALEYPRO/
Desktop/hp%20site%20layout/newStruc/testNav.swf'

This actually makes sense to me because I am hitting control enter from my computer and it is accessing files on the server. So Flash must see these as two different file locations.

But the problem that I am really grappling with is that when we plug everything up onto the server, the same components that are giving this error, do not show up on our stage at runtime. Has anyone had a similar problem to this? Obviously we cannot have text that does not scroll at all.

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

Shared Object Not Saving?
Here's the code. It appears that it will not save te cookie because on a return visit, it still triggers the undefined... any ideas? I've done this before and never had trouble, but something is obviously wrong:

get_flookies = function () {
_root.flookies = SharedObject.getLocal("preferences");
if (_root.flookies.desktop == undefined) {
trace("no desktop");
_root.flookies.desktop = _root.pref_pane.thumb0.name;
//_root.flookies.flush();
}
if (_root.flookies.volume == undefined) { trace("no volume");
_root.flookies.volume = 50;
//_root.flookies.flush();
}
};

What SHOULD happen is on the first visit, we'll create the preferences file and check to see if it has any values from a previous visit. If so, we'll use them and if not we need to set the defaults.

If anyone has any ideas, I'd appreciate the help!

Saving XML Into Shared Object Etc...
I'm setting up a system that will pull data from an XML doc, allow users to edit the attributes of items with a clcik, and then save it into a shared object on the computer (this will only be running on one machine).

There will also be a basic RESET function that at any time will load the data back in from the original XML and overwrite their SharedObject data.

But I'm having trouble figuring out how this SharedObject works. Once I've loaded my XML into an XML object in my movie, how do I then copy that data into the SharedObject?

Any help is greatly appreciated!

Shared Object Not Saving?
hey all. i have two different swfs. one sets a shared object and one is supposed to read it. it is always coming back as undefined (I'm not permitted to have a containing .swf, btw)

writer of SO:

var user = SharedObject.getLocal("userData");
var cookieValue=_root[mcAtTarget0]._name.charAt(10)+_root[mcAtTarget0]._name.charAt(11);
user.data.first=cookieValue;
user.flush();

reader:
user = SharedObject.getLocal("userData");

if (user.data.first == undefined){
text_txt.text = "not here";
} else {
text_txt.text = user.data.first;
}

what am i not getting? thanks!

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

[F8] DropShadowFilter Giving Me A Sandbox Violation
I'm trying to load a jpg from another domain into my swf. The jpg does load up, but the DropShadowFilter on it doesn't appear...and when I'm in debug mode, I get sandbox violations. I used a crossdomain xml to allow all domains....What else can I do?

Cryptic Security Sandbox Violation
I've got a Security Sandbox Violation which I can't seem to get rid off, can someone please tell me what to do?

I'm using MovieClipLoader to load an .swf from a remote server, into an empty movieclip placed on _root:

_container = _root.createEmptyMovieClip(this.name+getTimer(), _root.getNextHighestDepth()); //
_mcl = new MovieClipLoader();
_mcl.addListener(this);
_mcl.loadClip(_path, _container);


When running from Flash 8 i get this output:
*** Security Sandbox Violation ***
SecurityDomain 'http://[...].com/Frames/frame0.swf' tried to access incompatible context 'file:///E|/Projekt/[...]/Code/comic/comic.swf'

The funny thing is that all frames (there are several) are loaded and displayed correctly. When running the comic.swf from the same server hosting the frames there are no violations happening (using FlashTrace plugin for firefox).

Bitmap Draw Sandbox Violation
Hi,

I'm getting a sandbox violation error when trying to draw a jpg from amazon.


ActionScript Code:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: no policy file granted

I get the crossDomain policy from my amazon bucket at the very beginning of my app


ActionScript Code:
flash.system.Security.loadPolicyFile("http://myamazonbuckets3.amazonaws.com/crossdomain.xml")

How can I get my bitmap.draw to know that it has permission to draw the remote image.

also is there a way to double check that I deffinately do have the policy file loaded correctly.

thanks

dub

Security Sandbox Violation Problem
Hi,

I'm getting the following error:

Warning: Failed to load policy file from https://localhost/crossdomain.xml

*** Security Sandbox Violation ***
Connection to https://localhost/weborb/debug/weborb.aspx halted - not permitted from http://localhost/weborb/debug/Application.swf
Error: Request for resource at https://localhost/weborb/debug/weborb.aspx by requestor from http://localhost/weborb/debug/Application.swf is denied due to lack of policy file permissions.

It pops up only when i'm calling remote object (via weborb) function with "big" enough parameters. For example calling SaveArray(...) will trigger this error when array passed as parameter is bigger then 10 elements.

Any idea what might me wrong and how could i fix it?

Thanks in advance.

Edit:

Any idea why it's trying to connect via https and not http? Any way to turn "s" off? I bet that's what's causing problems.

Edit2:

I think it all started when i was promped to install new version of a flash player. Maby it has something to do with new security policy?

I'm going mad. Please help

2051 Security Sandbox Violation
I am getting a 2051 Security Sandbox Violation. Any ideas on how to fix this?

Basically I created 4 buttons and (after publishing) when I click on them I get this code. Is there something that will work other than javascript? I need the button to open a pop-up window.

My button code:
bd_btn.addEventListener(MouseEvent.CLICK, buttonClickbd);
function buttonClickbd(event:MouseEvent):void {
var jscommand:String = "window.open('

Security Sandbox Violation With SoundMixer
I am using AS3 and FMS2.

Steps to recreate problem:

Step 1: I call SoundMixer.computerSpectrum frequently(on ENTER_FRAME) to update an EQ graph.
Step 2: I open and begin playing an RTMP stream.

As soon as I receive a 'NetStream.Play.Start' event on a NET_STATUS event on the stream, I begin receiving errors every time the SoundMixer.computeSpectrum line occurs. Here is the error:

SecurityError: Error #2123: Security sandbox violation: SoundMixer.computeSpectrum: file:///S|/audioplayer/dashboard.swf cannot access rtmp://localhost/audioplayer. No policy files granted access.

I have read in livedocs for flash media interactive server(FMS3) that there exists a property of the server side Client Object called 'audioSampleAccess' that can enable the flash player to access raw, uncompressed audio data from streams. This property doesn't exist in FMS2(i've tried to add the line in livedocs to my application.onConnect!).

My question is:

Is it possible to access audio data using AS3 SoundMixer on FMS2 streams?



























Edited: 05/21/2008 at 04:23:30 PM by Craig Grummitt

[Q-error] Security Sandbox Violation
Hi all

I got the following error , when i was trying to load an external XML file,

this script woks fine in FLASH ...
but after I uploaded to web and test it ... the error comes up

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.abc.com/test.swf cannot load data from http://www.abc.com/test.xml

Any body could help ??
thanks ~!!

Security Sandbox Violation Issue
Here is the fastest method to obtain "... tried to access incompatible context ..." violation error:
we have 2 fla: a.fla and b.fla

in a.fla we put on first frame on Stage:

Code:
var listener = new Object();
this.createEmptyMovieClip("container", this.getNextHighestDepth());
var loader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip("http://serverPath/b.swf", this.container);
in b.fla we put on first frame on Stage:

Code:
_root.variable = "value"
Then we compile (fp8) and send b.swf to the server on serverPath.
Then we compile (fp8) a.fla and get:
*** Security Sandbox Violation ***
SecurityDomain 'http://serverPath/b.swf' tried to access incompatible context 'file:///C|/localdir/a.swf'

Only one "solution" I found to get rid of it is to put in b.fla this line:

Code:
this._lockroot = true;
Hovewer if we want to access _root of a.swf from b.swf, it is not a solution.

We can lower fp version of swfs, but it is not a good solution also.

Apart of above I can't get rid of the error.

I tried many combinations of System.security.allowDomain() call.
In a.fla I put at first line:

Code:
System.security.allowDomain("*");
//or
System.security.allowDomain("http://serverPath");
//or
System.security.allowDomain("http://serverPath/b.swf");
In b.fla I put at first line:

Code:
System.security.allowDomain("*");
I have tried all possible set of settings of "Local playback security" in Publish Options, I added path to a.swf and b.swf to Settings Manager http://www.macromedia.com/support/do...manager04.html

Nothing works.
I also want to notice that in authoring (Test Movie) security issues is at "low level", so it should not be a problem.

Does any expert have ideas how to get rid of this violation in above situation?

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