5 Replies Latest reply on May 27, 2013 6:34 PM by kglad

    turn textfield into bitmapData

    teeronline Level 1

      Hi,

       

      I found this example on from the net, trying to show a textfield as bitmap instead of textfield,

      what's wrong with my code? trace(my_txt) does show "country flags" though. please help

       

      import flash.display.*;

      var my_txt = "Country flags";

      this.createEmptyMovieClip('my_bm_mc',400+i);

      var bm:BitmapData = new BitmapData(my_txt._width, my_txt._height);

      bm.draw(my_txt);

       

      my_bm_mc.attachBitmap(bm);

      my_bm_mc._x = 0;

      my_bm_mc._y = 0;

       

      trace (my_txt);