Jump to content
Search Community

runtime created input field

edmunddantes test
Moderator Tag

Recommended Posts

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

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