Jump to content
Search Community

Rotation and TextField - dont work ;( [SOLVED]

radeon
Moderator Tag

Recommended Posts

Posted

code:

 

import gs.transform.*;

import gs.events.TransformEvent;

var test = new TextField();

test.width = 100;

test.height = 100;

test.text="123";

 

 

addChild(test);

var manager:TransformManager = new TransformManager({constrainScale:true, forceSelectionToFront:true, bounds:new Rectangle(0, 0, 500, 400)});

manager.addItem(test, "SCALE_WIDTH_AND_HEIGHT", false);

 

 

Resize and drag - work perfect, but rotation - dont work. Text - disappear.

Posted

When you say it "doesn't work", do you mean the text disappears? This actually has nothing to do with TransformManager. It's just that Flash won't render text in a rotated TextField unless you embed the font. Once you embed the font, you should be fine.

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...