External text file

Hi all,
Im trying to open an external text file with the help of button. It works locally on my computer. But as soon as i upload it on my site, it does not work any more. Can any one please look at the code and tell me what im doing wrong. Im not sure, if im putting the wrong path.

on (release) {
loadText = new loadVars();
loadText.onLoad = function(success) {
if (success) {
// trace(success);
_root.flying_pages.newsBox.html = true;
_root.flying_pages.newsBox.htmlText = this.myNews;

Please help me. thanks