Loading a SWF in another SWF problem


hello everyone,

i trying embed swf file (photo galley) swf (the main window). photo gallery uses xml file load list of photos. photo gallery work fine on own when embed in other swf "the main window" error.

the error message getting follow:

*** security sandbox violation ***
connection file:///c|/program%20files/xampp/htdocs/www/mydomainname/images.xml halted - not permitted http://www.mydomainname.com/photogallery/index.swf
-- remote swfs may not access local files.


this how loading photo gallery swf main swf window.

movieclip.prototype.drawrect = function(x, y, w, h) {
this.beginfill(0xff0000, 100);
this.moveto(0, 0);
this.lineto(0+w, 0);
this.lineto(0+w, 0+h);
this.lineto(0, 0+h);
this.lineto(0, 0);
this.endfill();
this._x = x;
this._y = y;
};

system.security.allowdomain(" http://www.mydomainname");

this.createemptymovieclip("mc5", 5);
mc5.linestyle (3, 0x000000, 100);
mc5.drawrect(100, 350, 400, 100);
mc5._xscale = 100;
mc5._yscale = 100;
loadmovie(" http://www.mydomainname/photogallery/index.swf", mc5);



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial