actionscript 3 - Textfield only displays white box -


please help- despite lots of small changes- result same- no text.

package  {     import flash.display.bitmap;     import flash.display.sprite;     import flash.events.*;     import flash.ui.keyboard;     import board;     import flash.accessibility.accessibilityimplementation;     import flash.display.bitmap;     import flash.display.movieclip;     import flash.text.textfield;     import flash.text.textformat;     import flash.display.sprite;     import flash.utils.bytearray;     import flash.events.mouseevent;     import flash.text.antialiastype;      import flash.utils.describetype;     /**      * ...      * @author michael      */      public class main extends sprite      {              [embed(source = "c:/windows/fonts/verdana.ttf", fontname = "verdana", fontweight = "bold", advancedantialiasing = "true", mimetype = "application/x-font")]          public static const verd:class;             /*[embed(source="../lib/starttext.txt",mimetype="application/octet-stream")]              private var myfile:class;             public var b:bytearray = new myfile();             public var s:string = b.readutfbytes(b.length)          */           public function main():void          {             if (stage) init();             else addeventlistener(event.added_to_stage, init);         }          private function init():void          {             removeeventlistener(event.added_to_stage, init);              var board1:sprite = new board();                stage.addchild(board1);                var mytextbox:textfield = new textfield();              mytextbox.text = "jabble. click scroll down . instructions alternate between english , japanese (translations). press h web page or put http://wp.me/p3fuql-n in web browser.  beneath board , right box further instruction display ~-~ means press or use mouse ~ ~. click , drag tiles move , double click set on square space on board or box , click on box change mode. jabble-" ;             //(下にスクロールする]をクリック) 英語と日本語(訳)との間で交互に指示。を押して、ヘルプwebページのhまたはwebブラウザでhttp://wp.me/p3fuql-nを置く。下には、取締役会であり、右に?などのさらなる命令ディスプレイボックスです - ?そのプレスを意味するか、やって?にマウスを使用して?。クリックして、それを移動するにはタイルをドラッグし、ダブル会またはボックス上の正方形のスペースには、それを設定してクリックし、そのモードを変更するには、ボックスをクリックしてください             mytextbox.x=32;             mytextbox.y=32;             mytextbox.width = 32*13;               mytextbox.height = 32*13;              mytextbox.multiline = true;              mytextbox.wordwrap = true;              mytextbox.background = true;              mytextbox.border = true;               var format:textformat = new textformat("verd",20);                format.font = "verdana";               format.color = 0xff0000;              format.size = 20;               mytextbox.defaulttextformat = format;              mytextbox.embedfonts = true;              mytextbox.antialiastype = antialiastype.advanced;             stage.addchild(mytextbox);              //mytextbox.addeventlistener(mouseevent.mouse_down, mousedownscroll);                              //             //function mousedownscroll(event:mouseevent):void          //{              //mytextbox.scrollv++;          //}                  //             //             //             //stage.addeventlistener(keyboardevent.key_down, mykeydown);             //function mykeydown(e:keyboardevent):void{             //if (e.keycode ==keyboard.space)              //{             //removechild(mytextbox);             //mytextbox = null;              //             }    }           }     

try add settextformat

 var format:textformat = new textformat("verdana",20);    format.color = 0xff0000;   format.size = 20;     mytextbox.defaulttextformat = format;   mytextbox.settextformat(format);  mytextbox.embedfonts = true; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -