Jump to content
Search Community

edmunddantes

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by edmunddantes

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

×
×
  • Create New...