Jump to content
Search Community

Text Disappears

BernalCarlos test
Moderator Tag

Recommended Posts

Hi,

 

I'm having a problem transforming a text field.

 

When i move or scale the text field everything is fine, but when i rotate it, the text disappears.

 

This is how i'm creating and adding the text field:

 

//Create the text format
var textFormat: TextFormat = new TextFormat();
textFormat.size = DEFAULT_TEXT_SIZE;
textFormat.align = DEFAULT_TEXT_ALIGN;
textFormat.font = DEFAULT_TEXT_FONT;

//Create the text field
var textField: TextField = new TextField();
textField.width = DEFAULT_TEXT_WIDTH;
textField.height = DEFAULT_TEXT_HEIGHT;
textField.x = (mc_stage.width - textField.width) / 2;
textField.y = (mc_stage.height - textField.height) / 2;
textField.type = "input";
textField.multiline = true;
textField.wordWrap = true;
textField.defaultTextFormat = textFormat;
textField.text = "Ingresa tu texto aquí...";


//Add the field to the parent moveiclip
mc_stage.addChild(textField);

//Add the field to the transform manager
var transItem: TransformItem = _transManager.addItem(textField);
transItem.constrainScale = false;
_transManager.selectItem(textField);

 

Any idea of what may be happening?

 

Tank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...