text dosen't show

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • obarash
    New Member
    • Jan 2007
    • 25

    text dosen't show

    Hello,

    I'm creating an MC and inside a textfield by code, and I cant see the text inside.

    If i'll create the MC on the _root the text will appear but if I'll create it in another Mc it won't.

    The Problem is that I already done that in another part of the file and it works.

    waht can I do??
  • obarash
    New Member
    • Jan 2007
    • 25

    #2
    I forgot to mantion that there is a Mask above the MC.

    so I create a text format


    [PHP]
    var tformat:TextFor mat = new TextFormat();
    tformat.bold = true;
    tformat.size = 12;
    tformat.font = "Arial";
    tformat.color = 0xFFFFFF;
    [/PHP]

    Comment

    • AccessIdiot
      Contributor
      • Feb 2007
      • 493

      #3
      Sounds like a path issue. What is the code you are using to put text into the textbox? If it is something like _root.myTextFie ld.text = "here is some text" then you need to include the name of the MC that myTextField is sitting in.

      Something like _root.MyMC.MyTe xtField.text = "here is some text".

      See the difference?

      Comment

      • axis
        New Member
        • Apr 2007
        • 12

        #4
        You need to embed the text. Masked text that isn't embedded won't show. Same thing if you rotate the text. I think the code is myformat.embedF onts = true;

        Comment

        Working...