# Dynamic text not displaying

**URL:** <https://forum.kirupa.com/t/dynamic-text-not-displaying/254183>\
**Category:** flash\
**Created:** [March 9, 2008, 8:57am UTC](https://forum.kirupa.com/t/dynamic-text-not-displaying/254183 "2008-03-09T08:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quarky](https://avatars.discourse-cdn.com/v4/letter/q/ba8739/32.png) [@Quarky](https://forum.kirupa.com/u/Quarky)\
**Post date:** [March 9, 2008, 8:57am UTC](https://forum.kirupa.com/t/dynamic-text-not-displaying/254183/1 "2008-03-09T08:57:07Z")

</div>

Hi,  
I’m obviously missing something here and it’s killing me…

The following code works fine except for the ■■■■ dynamic text component. The trace(encrypted); outputs correctly, so the value is there (it’s 17 btw), but encrypted.text = encrypted; does nothing to a dynamic text field on the stage with that instance name. All elements on are sitting in one frame at the root so I can’t imaging that there are targeting issues. What could it be?

submit\_btn.onPress = function() {

var send:LoadVars = new LoadVars;  
var receive:LoadVars = new LoadVars;  
send.toPHP = input.text;  
receive.onLoad = function(){  
encrypted = this.toFlash;  
trace(encrypted);  
encrypted.text = encrypted;  
}  
send.sendAndLoad(“mypath.php”,receive,“POST”);

//end of submit brackets  
};
