# Embedded SWF not loading served from Localhost? But it does when directly accessed

**URL:** <https://forum.kirupa.com/t/embedded-swf-not-loading-served-from-localhost-but-it-does-when-directly-accessed/279487>\
**Category:** Uncategorized\
**Created:** [January 15, 2009, 8:49am UTC](https://forum.kirupa.com/t/embedded-swf-not-loading-served-from-localhost-but-it-does-when-directly-accessed/279487 "2009-01-15T08:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cactusphone](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@cactusphone](https://forum.kirupa.com/u/cactusphone)\
**Post date:** [January 15, 2009, 8:49am UTC](https://forum.kirupa.com/t/embedded-swf-not-loading-served-from-localhost-but-it-does-when-directly-accessed/279487/1 "2009-01-15T08:49:02Z")

</div>

I am trying to set up a .swf in an offline enviroment, with a connection to a mySQL database using amfphp. Strangely, when I view the .swf embedded in a page as we need it, e.g. [http://127.0.0.1/flash\_loader.php](http://127.0.0.1/flash_loader.php), it hangs. However, when I access the .swf directly,  
e.g. [http://127.0.0.1/App.swf](http://127.0.0.1/App.swf), it loads without issue.

I also don’t think the issue is the php page, as I’ve uploaded it to an online testing server and it works fine there with the same settings, only adjusted for the online server. I’ve added localhost and 127.0.0.1 to the trusted sites here: [http://www.macromedia.com/support/documentation/en/flashplayer/help/settings\_manager04.html](http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) as well as tried changing Allow script access to always.

Is there some security setting that prevents the embedded swf from working like this in an embedded format when working with the localhost address? Any help/thoughts would be greatly appreciated.
