PDA

View Full Version : SecurityError


stewart.matheson
08-04-2008, 04:17 AM
hey i have a flash movie that accesses an xml stream. Fine when testing in the flash IDE however when i export to a swf file so i can set up the file in my html page i get the following error



SecurityError: Error #2028: Local-with-filesystem SWF file file:///C:/Users/Stewart/Desktop/Header.swf cannot access Internet URL http://portablefilmfestival.com/tiles.php.
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at PFFXMLLoader/load_xml()
at PFFXMLLoader$iinit()
at ContentMovieClip$iinit()
at MainPage$iinit()





how do i allow this flash movie to access the internet??

aaaidan
10-24-2008, 03:18 AM
You probably need to set your "local playback security" setting in your publish settings.

File -> Publish settings -> "Flash" tab -> "Local playback security" popdown. You'll want to set this to "Access network only". Of course, this means that you wont be able to access local files which you might be loading as part of your project. Unfortunately it's all or nothing: that's the way flash security works (there are some good reasons for this).

If you find you need to load other local files as part of your project, and it's going to end up on the web anyway, consider publishing your project to a local webserver (on your own machine). That way nothing is local, as far as Flash is concerned. (You'll need to install Apache or IIS to do this.)