15 Replies Latest reply on May 19, 2008 6:07 AM by kglad

    Removing a text field? -Still need help!

    VanessaR14 Level 1
      Sorry, this is probably easy to do....but I just can't figure it out!!!! How do I remove a text field I created with the following code? I can make the words disappear, but I can't stop the movie clip from being rendered a text field and can't load anything that is clickable in it. Thanks!!!!!

      function addConsultation(sLinkage:String):Void{
      if(oOpenedConsultation[sLinkage]!=undefined) {
      oOpenedConsultation[sLinkage].swapDepths(nTopDepth8);
      return;

      }
      }

      function loadConsultation():Void {
      var nWidth:Number = mcDisplayBackground2._width;
      var nHeight:Number = mcDisplayBackground2._height;
      var nX:Number = mcDisplayBackground2._x;
      var nY:Number = mcDisplayBackground2._y;
      this.createTextField("tArticle", this.getNextHighestDepth(), nX, nY, nWidth, nHeight);
      tArticle.multiline = true;
      tArticle.wordWrap = true;
      tArticle.textColor = 0x000000;
      tArticle.html = true;
      tArticle.condenseWhite = true;

      }



      function loadData8():Void {
      var lvLinksContent:LoadVars = new LoadVars();
      lvLinksContent.onData = function(sHTMLData:String):Void {
      tArticle.htmlText = sHTMLData;
      };
      var cssStyles2:TextField.StyleSheet = new TextField.StyleSheet();
      cssStyles2.onLoad = function():Void {
      tLinks.styleSheet = this;
      lvLinksContent.load("consultation.html");
      };
      cssStyles2.load("aof.css");
      }



      var nTopDepth8:Number;
      var oOpenedLinks:Object = new Object();
      mcConsultationButton.onRelease = function():Void {

      loadData8();
      gotoAndPlay(4);

      };