Share Posted July 21, 2011 Hi. I have some problem with textField. I Your Transform Manager Example there is a TextField(input) placed on stage. You can resize this field and text if adjusts to width/height of the field. I've created some Class: public class TextField2 extends TextField { public function TextField2(text:String="") { type = TextFieldType.INPUT; multiline = true; text = tekst } } var tf:TextField2 = new TextField2("uhoiohiouhiuhiuhiuhihiuhu") tf.addEventListener(Event.ADDED_TO_STAGE, fadded) addChild(tf) function fadded(e:Event){ var myTextItem:TransformItem = manager.addItem(tf, TransformManager.SCALE_WIDTH_AND_HEIGHT, true); } behavior of this Textfield is different. Is there any way to create a textField(input) that behave like there was made in flash ide? Sorry my bad language. Still learnig :] Great Work with Transform Manager. Link to comment Share on other sites More sharing options...
Author Share Posted July 21, 2011 Sorry. This is my mistake. I forget to set wordWrap. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now