# Problem with Downloading the file

**URL:** <https://forum.kirupa.com/t/problem-with-downloading-the-file/288233>\
**Category:** Uncategorized\
**Created:** [May 13, 2009, 5:46am UTC](https://forum.kirupa.com/t/problem-with-downloading-the-file/288233 "2009-05-13T05:46:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swathi84\_k](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@swathi84\_k](https://forum.kirupa.com/u/swathi84_k)\
**Post date:** [May 13, 2009, 5:46am UTC](https://forum.kirupa.com/t/problem-with-downloading-the-file/288233/1 "2009-05-13T05:46:57Z")

</div>

Hi all,  
I am new to flash & AS3.0 environment(familiar in Java envt.).  
When i try to download a file after including the flash swf file into java application it is showing the error as follows:

```
    Here,[http://localhost:8888/com.mymdworld.Application/ is the url of the java application and [URL="http://localhost:8888/com.mymdworld.Application/DynaAccess.swf"]DynaAccess.swf](http://localhost:8888/com.mymdworld.Application/DynaAccess.swf) is the flash .swf file.

```

SecurityError: Error #2148: SWF file [http://localhost:8888/com.mymdworld.Application/DynaAccess.swf](http://localhost:8888/com.mymdworld.Application/DynaAccess.swf) cannot access local resource D:/websites/mymdworld/backup\_temp/P1/DownloadedFiles.zip. Only local-with-filesystem and trusted local SWF files may access local resources.  
at global/flash.net::navigateToURL()  
at MethodInfo-375()  
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFuncti on()  
at flash.events::EventDispatcher/dispatchEvent()  
at [flash.net](http://flash.net)::URLLoader/flash.net:URLLoader::onComplete()  
for downloading

Please Help me…Its urgent…

Thanks in Advance  
Swathi
