4 Replies Latest reply on Sep 20, 2012 8:09 PM by Charine -FB buggoop

    Basic AS3 Coding help needed

    Charine -FB buggoop Level 1

      I just added my first code to make a text field appear when a user mouse over it. The code below works perfectly.


      My question: What code do I need to add for the same text field to disappear when the user mouse out?


      Thanks for your help.


      /*Here is my code that works well for mouse_over (now I just need mouse_out)*/


      FLags.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToPosition);


      var fl_TF:TextField;

      var fl_TextToDisplay:String = "UK or USA english Spelling.";


      function fl_ClickToPosition(event:MouseEvent):void


          fl_TF = new TextField();

          fl_TF.autoSize = TextFieldAutoSize.LEFT;

          fl_TF.background = true;

          fl_TF.border = true;

          fl_TF.x = FLags.x;

          fl_TF.y = FLags.y + FLags.height + 5;

          fl_TF.text = fl_TextToDisplay;