To use the .text code, the dynamic textbox would be placed physically on the stage and ftxt would be an instance name. Also, make sure your path to your textbox is correct (_parent , _root , ect)
yes I understand that you want to display it in a dynamic textbox, but my question related to syntax. If you want the word hit to display, then it need to be in " " marks otherwise Flash assumes it is a varaible name.
so first thing is change hit to "hit" if that is what you want to do.
Secondly I assume you entered the variable ftxt in the properties panel for the text field, which is fine, but you also have to keep in mind where that variable is being defined and changed. So I would go back ino the properties for the textfield and change it to read:
_root.ftxt
Then on the button you would have to change it to:
on (rollOver) {
_root.ftxt = "hit";
//ftxt is a variable to a textbox, hit is the text i want to display
}
It is a matter of refering to right level for the variable. The way you have it orginally written, would create a variable on the button named ftxt and set it equal to another variable named hit, meaning that it would never actually change the value for the variable you set in the poperties for the text box.
if you set the vairable in the properties box in the variable field, you do not need the instance name. skillinaire is assuming you are trying to target the text field via the instance name and set the text property. Which from what I have read does not seem to be the way you set it up.