# Dynamic Text Display

**URL:** https://forum.kirupa.com/t/dynamic-text-display/225685
**Category:** Uncategorized
**Created:** [May 14, 2007, 10:09pm UTC](https://forum.kirupa.com/t/dynamic-text-display/225685 "2007-05-14T22:09:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![firefly2000uk](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/firefly2000uk/32/3363_2.png) [@firefly2000uk](https://forum.kirupa.com/u/firefly2000uk)
#### Post date: [May 14, 2007, 10:09pm UTC](https://forum.kirupa.com/t/dynamic-text-display/225685/1 "2007-05-14T22:09:25Z")

</div>

[COLOR=black][FONT=Arial][[COLOR=black]Hey[/COLOR]](http://www.kodekontrol.com/text.gif) I have this problem with dynamic text… this code is located inside 2movie clips…[/FONT][/COLOR]

[COLOR=black][FONT=Arial]scene1 -\> MovieHolder -\> MovieAboutText[/FONT][/COLOR]

[COLOR=black][FONT=Arial]Whenever i “Test scene” and im inside the MovieAboutText the dynamic text is located from the [www.address](http://www.address/)… and displayed in the dynamic text box (Works Fine)[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]however…[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Unfortuately whenever I click “Test Movie” the dynamic text fails to load… im not sure why this would work while you are inside the actual movie but not 2levels about… [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Here is my dynamic text code within the MovieAboutText:[/FONT][/COLOR]

var format = new TextField.StyleSheet();  
var path = “[http://www.asmithphotography.co.uk/asmithphotography\_sourcefiles/asmithphotography\_style\_main.css](http://www.asmithphotography.co.uk/asmithphotography_sourcefiles/asmithphotography_style_main.css)”;  
format.load(path);  
format.onLoad = function(success) {

if (success) {  
inText.styleSheet = format;  
myLoadVar = new LoadVars ();  
myLoadVar.load(“[http://www.asmithphotography.co.uk/asmithphotography\_sourcefiles/asmithphotography\_about.txt](http://www.asmithphotography.co.uk/asmithphotography_sourcefiles/asmithphotography_about.txt)”)  
myLoadVar.onLoad = function (success){  
if (success == true) {  
inText.variable = “asmithphotography\_textdata”  
inText.htmlText= myLoadVar.asmithphotography\_textdata;  
loadText.onLoad = function() {  
inText.text = this.asmithphotography\_textdata;  
}  
}  
}  
} else {  
inText.text = “Error loading CSS file!”;  
}  
};

Thanks for looking…:look:
