Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8600791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:41:41+00:00 2026-06-12T01:41:41+00:00

This is my basic folder structure: https://i.stack.imgur.com/l1YnV.jpg My code goes like this: private var

  • 0

This is my basic folder structure:
https://i.stack.imgur.com/l1YnV.jpg

My code goes like this:

private var xmlLoader:URLLoader=new URLLoader();
private var url:URLRequest=new URLRequest("../src/NPClist.xml");

xmlLoader.load(url);

I get the following:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: app:/src/NPClist.xml

No matter how many “../” I put in the URLRequest constructor, it only works if NPClist.xml is in the same folder as the .swf (bin-debug), and I even tried copying it around. It seems like it’s ignoring/not resolving the “../”. I also tried exporting a release build, but it didn’t work. The interesting thing is that similar Embeds work (the assets folder is at the same level as src and bin-debug).

[Embed(source="assets/mainmenu/somefile.png")]

Here’s how I got it to work:

var xmlFile:File=new File(File.applicationDirectory.nativePath).resolvePath("../src/NPClist.xml");
var url:URLRequest=new URLRequest(xmlFile.url);

The “../” didn’t work initially, but it works if you use it like this.


Coming back to it, this seems wrong as well. Here’s how it definitely works as expected:

I included the assets with the installer, and I’m using

imgFile=File.applicationDirectory.resolvePath("assets/folder/file");
urlReq=new URLRequest(imgFile.nativePath);
ldr.load(urlReq);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:41:43+00:00Added an answer on June 12, 2026 at 1:41 am

    You can not use URLRequest to access local file system resources – URLRequest uses HTTP protocol to get resources.

    URLRequest can access only Internet resources that have crossdomain security applied.

    If you want to open a local file you should:

    • either explicitly force the user to open the file use Open File Dialog
      (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html)

    • or use AIR runtime (with AIR you can open local files, but not with URLRequest but with File class).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic website nav layout that looks like this: <li class=folder parent_folder>
Hi I have this basic random quote script, but I would like it to
I have a simple java project with this basic structure: IncludeMe src deploy siteSpecific
This basic app which was given to me as an project should run quite
I'm reading this basic tutorial on canvas elements . The (almost) in the following
I've created this basic 3D Demo using OpenGL/SDL. I handled the keyboard callback so
I have a js.erb with this basic content: $(#currencies).html(<%= options_for_select([['Dollar', '$']])%>); And the html
Forgive my ignorance in asking this basic question but I've become so used to
I'm trying to learn this basic thing about processors that should be taught in
Its a interview question. Interviewer asked this basic shell script question when he understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.