# Need help loading an external url for a movie file \[renamed\]

**URL:** <https://forum.kirupa.com/t/need-help-loading-an-external-url-for-a-movie-file-renamed/161270>\
**Category:** flash\
**Created:** [September 2, 2005, 10:00am UTC](https://forum.kirupa.com/t/need-help-loading-an-external-url-for-a-movie-file-renamed/161270 "2005-09-02T10:00:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wannabe2](https://avatars.discourse-cdn.com/v4/letter/w/aeb1de/32.png) [@wannabe2](https://forum.kirupa.com/u/wannabe2)\
**Post date:** [September 2, 2005, 10:00am UTC](https://forum.kirupa.com/t/need-help-loading-an-external-url-for-a-movie-file-renamed/161270/1 "2005-09-02T10:00:08Z")

</div>

# I have a little script to play flash movie file. The movie file is in some place else in external server. I tried to read the movie file link from text file(data) using LoadVars, it doesn’t work. Please someone help me what is my script is wrong.

function togglePlay()  
{  
if (this.\_currentframe != 2)  
{  
this.nextFrame();  
myDisplay.pauseVideo();  
}  
else  
{  
this.gotoandstop(1);  
myDisplay.playVideo();  
}  
}  
var myLV = new LoadVars();  
myLV.load(“[clip.txt](http://www.designxtra.net/clients/digitalmedia/clip.txt)”);  
myLV.onLoad = function ()  
{  
vLink = this.link;  
};  
myDisplay.loadVideo(vLink);  
playButton\_mc.onRelease = togglePlay;

==================================  
Many thanks in advance
