Jump to content
GreenSock

VIJFLEXCODER

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by VIJFLEXCODER

  1. You'll need to embed fonts in your text fields to be able to rotate them in flash. From a related thread:

     

    Hi,

    I have used the folllowing :

     

     

    <mx:Style>

    @font-face {

    src:url("Assets/fonts/myriad-web-pro.ttf");

    fontFamily: myFontFamily;

    advancedAntiAliasing: true;

    unicodeRange:

    U+0041-U+005A,

    U+0061-U+007A,

    U+0030-U+0039,

    U+002E-U+002E;

    }

    .myFontFamily

    {

    fontSize: 25;

    }

    </mx:Style>

     

     

    var flxTransformManagerObj:FlexTransformManager = new FlexTransformManager();

    flxTransformManagerObj.width = 300;

    flxTransformManagerObj.height = 300;

    flxTransformManagerObj.allowDelete = true;

    flxTransformManagerObj.constrainScale = true;

    flxTransformManagerObj.lockRotation = false;

    this.addChild(flxTransformManagerObj);

     

    var textAreaObj:TextArea = new TextArea();

    textAreaObj.width = 300;

    textAreaObj.height = 300;

    textAreaObj.styleName = "myPlainStyle";

    textAreaObj.text = "This is sample text in the text area";

     

    flxTransformManagerObj.addChild(textAreaObj);

     

    But still when i tried rotation with text the text disappears.... Kindly help ....

  2. Hi,

     

    I have a some issue while working with text area and FlexTransformManager. I am creating a textarea dynamically but while rotating it the text is getting disappeared ....

     

    what exactly am i missing out?

     

    Code is :

     

    import com.greensock.transform.FlexTransformManager;

    import fl.core.UIComponent;

    import mx.controls.TextArea;

     

     

    var flxTransformManagerObj:FlexTransformManager = new FlexTransformManager();

    flxTransformManagerObj.width = 300;

    flxTransformManagerObj.height = 300;

    flxTransformManagerObj.allowDelete = true;

    flxTransformManagerObj.constrainScale = true;

    flxTransformManagerObj.lockRotation = false;

    this.addChild(flxTransformManagerObj);

     

    var textAreaObj:TextArea = new TextArea();

    textAreaObj.width = 300;

    textAreaObj.height = 300;

    textAreaObj.text = "This is sample text in the text area";

    flxTransformManagerObj.addChild(textAreaObj);

     

    I am using FLEX 4.6

     

    Thanks

×