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
};