VIJFLEXCODER
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by VIJFLEXCODER
-
-
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
FlexTransformManager and Text components problem
in TransformManager (Flash)
Posted
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 ....