You'll need to create a listener for a MOUSE_OUT event.
What you might want to do with what you have already is to instantiate the textfield (fl_TF = new TextField();) outside of the function so that you don't end up creating a new one every time you rollover. Then you could reuse the same textfield over and over by having the addChild(fl_TF) in the rollover function and removeChild(fl_TF) in the rollout function
I realised that I could use the button function with the text added to the over state with no extra code. It works fine that way.
Is this a good practice, or should I rather use code to do this?
1 person found this helpful
Button symbols (SimpleButton objects) can serve a purpose and can save you some work when you want a simple appear/disappear hovering effect.
The only question is whether or not you can do it using code... it's a good thing to know how to do, so you oughta give it a try at some point.
I whole heartedly agree Ned. Thanks for taking the time to explain it to me so clearly. I will most definately need it in future.