# Getting loading paths from a .txt file

**URL:** https://forum.kirupa.com/t/getting-loading-paths-from-a-txt-file/245534
**Category:** Uncategorized
**Created:** [November 30, 2007, 5:33pm UTC](https://forum.kirupa.com/t/getting-loading-paths-from-a-txt-file/245534 "2007-11-30T17:33:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DeltaFrog](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@DeltaFrog](https://forum.kirupa.com/u/DeltaFrog)
#### Post date: [November 30, 2007, 5:33pm UTC](https://forum.kirupa.com/t/getting-loading-paths-from-a-txt-file/245534/1 "2007-11-30T17:33:47Z")

</div>

I can load variables into flash text fields but I can’t use those variable in my action script. Heres what I’m trying to do. I have a top5.txt file that looks like this:

&title1=L.A.M.B. FRAGRANCE  
&body1=National Geographic reminds us to stay Green - with a little help from Natalie Portmany Green  
&detailspanel1=  
&imagepath1=/topfiveimages/image1.jpg  
&videopath1=/topfivevideos/top1.flv

I’m trying to pull the image/video path from the external .txt file so they can be alterd without opening flash.

Heres what I tried in my first frame so you get a better idea of what I’m trying to do  
\_root.loadVariables(“top5.txt”);  
\_root.container1.loadMovie(imagepath1);

Thanks in advance.
