Textfield resetting.. probably newbie problem

E- appears to be a problem with masking text. Trying to embed it now…


So, I have a button that I want to display a label movieclip on mouseover, yeah? -and the clip contains a blank dynamic textField with an instance name of “label_text”. So, I have one of these clips as a private variable in the button’s class definition, and the constructor passes the button’s instance name to the label’s constructor to set the text field. Unfortunately, the text will only show if I actually open up the label’s clip in the library and type something in. Not very dynamic! What’s the deal?

The button’s class:

public class BlueButton extends MovieClip {
        private var button_text:String; 
        private var buttonLabel:LabelClip;
        public function BlueButton() {
            button_text = this.name;
            buttonLabel = new LabelClip(button_text);
            this.addEventListener(MouseEvent.MOUSE_OVER, showLabel);
        private function showLabel(e:MouseEvent):void {
            e.target.removeEventListener(MouseEvent.MOUSE_OVER, showLabel);
            e.target.addEventListener(MouseEvent.MOUSE_OUT, hideLabel);
        private function hideLabel(e:MouseEvent):void {
            e.target.removeEventListener(MouseEvent.MOUSE_OUT, hideLabel);
            e.target.addEventListener(MouseEvent.MOUSE_OVER, showLabel);

the label’s class:

public class LabelClip extends MovieClip {
        public function LabelClip(txt:String):void {