Hi guys, How do you rotate a RichTextEditor and have it remain editable? I've tried many things. The closest I've come is the following which seems to expose a bug. Why does the first RTE work, while the second one does not? It seems if you make a 1 character difference in the rotationVector it works. What up with that? Why can't it handle a vector of 0? Ultimately my question is "How do you rotate a RTE (without skewing it) and have it remain editable?"
Thanks, Murray. ======================== <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" > <fx:Script> <![CDATA[ public function initRTE1():void { var originVector:Vector3D = new Vector3D(0,0,0,0); var rotationVector:Vector3D = new Vector3D(1,0,30,0); rt1.transformAround(originVector, null, rotationVector); //rt1.rotationZ = 30; rt1.setStyle("backgroundAlpha", 0.0); } public function initRTE2():void { var originVector:Vector3D = new Vector3D(0,0,0,0); var rotationVector:Vector3D = new Vector3D(0,0,30,0); rt2.transformAround(originVector, null, rotationVector); //rt1.rotationZ = 30; rt2.setStyle("backgroundAlpha", 0.0); } ]]> </fx:Script> <s:BitmapImage source="http://www.hamiltonmountain.org/pics/sunsets/sunset2.jpg" width="100%" height="100%" /> <s:HGroup contentBackgroundAlpha="0"> <mx:RichTextEditor id="rt1" contentBackgroundAlpha="0" showControlBar="false" headerHeight="0" creationComplete="initRTE1()" text="You can see this and type in here" /> <mx:RichTextEditor id="rt2" contentBackgroundAlpha="0" showControlBar="false" headerHeight="0" creationComplete="initRTE2()" text="Why can't you see this or type in here?" /> </s:HGroup> </s:Application>