Hello. im working with a flv player and when i teste my movie result a “sand box” error:
this is my code:
var nc_video:NetConnection = new NetConnection();
nc_video.connect(null);
var ns_video:NetStream = new NetStream(nc_video);
ns_video.setBufferTime(3);
video.myVideo.attachVideo(ns_video);
function setVideo(vidSource:String):Void {
ns_video.play("Videos/" + vidSource);
};
//
var xd:XML = new XML();
xd.ignoreWhite = true;
xd.onLoad = xdLoaded;
xd.load("videoList.xml");
function xdLoaded() {
function rodaVideo(nunVid:Number):Void {
var sourceVideo:String = xd.childNodes[0].childNodes[nunVid].childNodes[1].firstChild;
setVideo(sourceVideo);
};
rodaVideo(0);
};
//
stop();
The video run fine but show the sand box error:
*** Security Sandbox Violation ***
Connection to null halted - not permitted from file:///C|/Documents%20and%20Settings/.Pablo.CASA.000/Desktop/wtv/wtv.swf
Anyone know anything about it ? Need some help to fix it.
Tks in advance.