# LoadVars issue

**URL:** <https://forum.kirupa.com/t/loadvars-issue/228329>\
**Category:** flash\
**Created:** [June 6, 2007, 11:16pm UTC](https://forum.kirupa.com/t/loadvars-issue/228329 "2007-06-06T23:16:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nwglow](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@nwglow](https://forum.kirupa.com/u/nwglow)\
**Post date:** [June 6, 2007, 11:16pm UTC](https://forum.kirupa.com/t/loadvars-issue/228329/1 "2007-06-06T23:16:13Z")

</div>

This is complicate to explain so I attach an .jpg to illustrate what I mean. Any help is greatly appreciated.:hr:

I am able to **load dynamic text from external files** for every navigation page (eg. develop & both). If I visit develop page, the dynamic text show up when I \*\*mouseover \*\*or \*\*press \*\*any square button. Then I visit both page and come back to the develop page, the dynamic text DOES’T show up.

//---------------\<load image and text\>----------------\  
var myLV:LoadVars = new LoadVars();

myLV.onLoad = function (success) {  
if (success) {  
\_level0.loadedInfo.htmlText = myLV.info;  
} else {  
\_level0.loadedInfo.text = “There has been an error loading the requested information. Please contact the Webmaster and report your error.”;  
}  
}

var myMCL:MovieClipLoader = new MovieClipLoader();  
var dvListener:Object = new Object();

function empty(){  
this.createEmptyMovieClip(“imageMC”, this.getNextHighestDepth());  
}

dvListener.onLoadInit = function(mcContent:MovieClip):Void {  
mcContent.\_x = 285;  
mcContent.\_y = 121;  
};

btn1.onRelease = function(){  
empty();  
myMCL.loadClip(“images/emailRei.jpg”, imageMC);  
myMCL.addListener(dvListener);  
\_level0.myLV.load(“vars/email0.txt”);  
};

btn2.onRelease = function(){  
empty();  
myMCL.loadClip(“images/emailGold.jpg”, imageMC);  
myMCL.addListener(dvListener);  
\_level0.myLV.load(“vars/email1.txt”);  
};

//--------------------\<Rollover\>----------------------\  
btn1.onRollOver = function(){  
myMCL.unloadClip(“imageMC”);  
\_level0.myLV.load(“vars/email0.txt”);  
};

btn2.onRollOver = function(){  
myMCL.unloadClip(“imageMC”);  
\_level0.myLV.load(“vars/email1.txt”);  
};
