Skip to main content
Known Participant
December 7, 2011
Answered

Can not load an external swf file from my site

  • December 7, 2011
  • 1 reply
  • 2654 views

Hi ...

I have a fla file which is loading external swf files from my local folders.

I inserted some of the swf files to a web site and tried to load them from the site, not from my local folder...

So it gave me a security error like below:

*** Güvenlik Sanal Alanı İhlali ***security domain-area violation

target=_blankhttp://www.celiktek.com.tr/KIRIL.swf' SecurityDomain öğesi -- security domain element, 'file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf' uyumsuz bağlamına erişmeye çalıştı - tried to reach this incompatible url

SecurityError: Error #2070: Güvenlik sanal alan ihlali -- security area violation: target=_blankhttp://www.celiktek.com.tr/KIRIL.swf arayanı - searcher of this can not reach stage in target=_blankfile:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf içindeki Stage'e erişemiyor. -

at flash.display::Stage/requireOwnerPermissions()

at flash.display::Stage/get numChildren()

at KIRIL_fla::MainTimeline/frame1()

so in my computer, I can load this swf , but how from a website ?

thnx ...

This topic has been closed for replies.
Correct answer kglad

You loaded the swf with loader to your computer

or you mean the swf on the site ... my problem is the loader , I can not load it to my local computer fla files, but I think you did ? not sure ...


i opened your swf in my web browser.  i did not open in the stand-alone flash player.

if i opened it in my flash player i would get a security error unless i'd adjusted my security settings:  http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

1 reply

kglad
Community Expert
Community Expert
December 7, 2011

i don't see that error but that error message indicates you're trying to load a swf from your C: drive.  that's a security violation.

you should be using local paths to your web server to load files, not absolute paths to your personal computer.

ohamsiciAuthor
Known Participant
December 7, 2011

here is the code :

var req:URLRequest=new URLRequest("http://www.celiktek.com.tr/KIRIL.swf");

var loder:Loader=new Loader();

loder.load(req);

addChild(loder);

loder.x=0;

loder.y=0;

kglad
Community Expert
Community Expert
December 7, 2011

if that code is being executed from a file local to your computer, you'll get a security sandbox error.  to remedy, change your security restrictions on local files:  http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

or, upload your local file to and test.