0 Replies Latest reply on Dec 13, 2007 8:10 AM by edovan

    Dynamic text anti-alias trouble

    edovan
      I have a menu with MovieClips working as buttons. When the mouse is over the button a short description is supposed to show up next to the menu. It work fine, but I want to make the dynamic text anti-aliased. To do that I have to embed the font, and when I do that no text shows.

      Note: The value "This one shows..." below is visible before any button is "hovered", but then it disappears when you're over a button.

      The font is imported to the library and is callad Verdana-Edo and link for AS export.
      "Knapp_mc" & "Knapp_mc2" are the two buttons.

      How can this be solved?

      Here's the AS: (located in separate layer in frame 1 in the Stage 1 Timeline)


      stop();

      var my_fmt:TextFormat = new TextFormat();
      my_fmt.font = "Verdana-Edo";

      this.createTextField("textruta2", this.getNextHighestDepth(), 30, 30, 190, 45);
      textruta2.text ="This one shows...";
      textruta2.wordWrap = false;
      textruta2.embedFonts = true;
      textruta2.border = true;
      textruta2.setTextFormat(my_fmt);
      textruta2.antiAliasType = "advanced";



      Knapp_mc.onRollOver = function () {
      textruta2.text ="Hello world";
      this.reverser_mc.gotoAndStop(1);
      this.play(1); }

      Knapp_mc.onRollOut = function () {
      this.reverser_mc.gotoAndPlay(2);
      textruta2.text = "";}

      Knapp_mc.onPress = function () {
      this.gotoAndStop(17); }

      Knapp_mc.onRelease = function () {
      this.gotoAndStop(1); }



      Knapp_mc2.onRollOver = function () {
      this.reverser_mc.gotoAndStop(1);
      this.play(1);
      textruta2.text = "Menu button hint"; }

      Knapp_mc2.onRollOut = function () {
      this.reverser_mc.gotoAndPlay(2);
      textruta2.text = ""; }

      Knapp_mc2.onPress = function () {
      this.gotoAndStop(17); }

      Knapp_mc2.onRelease = function () {
      this.gotoAndStop(1); }