did you define the output function? If not, then change output to trace. Output was just a function I made to show you how youd call it and how functions can (and often are) defined in a frame script in the first frame
another problem you may be having is that if ‘a’ is your INSTANCE name then it doesnt represent the text within the field, rather the textfield object. Thats why I said before set the Var of the textfield to a. Dont worry about that now, because you can use the instance name of the textfield object by saying
a.text
so your button should have
on (release){
if (a.text==“hello”){
trace(“bye”);
}
}
cool it worked, but the output msg popped out in other window, how do i make it pop up on the same screen. do i make a graphic symbol and tell that to show somehow?
youd have to make another textfield and put it there.
trace puts a message in the output window that helps you debug, letting you trace or output messages and variable values so you can see their progress over time (or even just when the trace code is initated) when testing your movie.
if you make another textfield, give it the instance name b and use this on your button
on (release){
if (a.text==“hello”){
b.text = “bye”;
}
}
I think that this point you really need to go through the Flash manual or the inbuilt tutorials and examples to start you off on flash. There are also a lot of examples online here, and at places like flashkit.com that can help you get started and learn from example.
Asking for tiny specific questions like this in the forums is slow going and can be a drag not to mention confusing at times as the line of communication can be faulty, especially with you so new to Flash.