Hey everyone. Im new to Flash MX and am already getting stuck on some simple actionscript. Heres what Im aiming to do:
I have a input textfield, a button, and a dynamic text box. When somebody types text in the input textfield and presses the button, that text shows up in the dynamic textbox.
Heres the actionscript that Ive been trying to get to work:
The input textfield's instance name is "textfield01".
The dynamic textbox's instance name is "results01".
The button's instance name is "button01".
The actionscript is as follows in frame 1:
_root.button01.onRelease = function(){
var entered_text01 = textfield01;
_root.results01 == entered_text01;
}
Another alternative I tried was putting the actionscript on the button like so:
on(Release){
var entered_text01 = textfield01;
_root.results01 == entered_text01;
}
However, neither of these prints anything in the dynamic text box. After I enter some text and press the button, nothing shows up.
Any help is appreciated.
--REI
I have a input textfield, a button, and a dynamic text box. When somebody types text in the input textfield and presses the button, that text shows up in the dynamic textbox.
Heres the actionscript that Ive been trying to get to work:
The input textfield's instance name is "textfield01".
The dynamic textbox's instance name is "results01".
The button's instance name is "button01".
The actionscript is as follows in frame 1:
_root.button01.onRelease = function(){
var entered_text01 = textfield01;
_root.results01 == entered_text01;
}
Another alternative I tried was putting the actionscript on the button like so:
on(Release){
var entered_text01 = textfield01;
_root.results01 == entered_text01;
}
However, neither of these prints anything in the dynamic text box. After I enter some text and press the button, nothing shows up.
Any help is appreciated.
--REI