# How to target an external file located up one level

**URL:** <https://forum.kirupa.com/t/how-to-target-an-external-file-located-up-one-level/319589>\
**Category:** flash\
**Created:** [February 25, 2011, 11:13am UTC](https://forum.kirupa.com/t/how-to-target-an-external-file-located-up-one-level/319589 "2011-02-25T11:13:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Post date:** [February 25, 2011, 11:13am UTC](https://forum.kirupa.com/t/how-to-target-an-external-file-located-up-one-level/319589/1 "2011-02-25T11:13:17Z")

</div>

Hi,

Last night I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn’t make it work, this is what I have…

This code works just fine if I put my external .txt file in the same folder as my  
.fla

> var myRequest:URLRequest = new URLRequest(“MaterialRef.txt”);

but when I try something like… where the .txt file now is in a folder called “Materials” which is located up one level, it just doesn’t work.

> var myRequest:URLRequest = new URLRequest(“…/Materials/MaterialRef.txt”);

Can someone be so kind and show me the proper way to do this?

Thanks a lot
