Skip to main content
June 7, 2010
Question

Changes in TextField CS4->CS5

  • June 7, 2010
  • 1 reply
  • 545 views

function setText(txt:String):void

{

//    var tf:TextFormat = instructionText.getTextFormat();

    instructionText.text = txt;

//    instructionText.setTextFormat(tf);

}

This code is from a TextField instance in a MovieClip in my library.  In CS4 it worked fine.  In CS5, if I don't do the above assignment, it displays the default text that's typed in when editing the instance in the library.  If I do do the assignment, then that field appears blank/empty.  If I uncomment the TextFormat statements above (which have worked in the past in CS3), it does nothing.

This topic has been closed for replies.

1 reply

June 7, 2010

Addendum:

Trace statements of value before assignment and after assignment show that the 'text' property of the textfield being (not) displayed is in fact being changed.

This worked fine until I upgraded to CS5

June 7, 2010

I see.  Fonts don't migrate properly between versions and you have to explicitely go in to each TextField entity and re-embed.