|
Can you please post the code that is not working?
I tried to rotate Text, Label, and TextInput components that had htmlText and
an embedded fontFamily specified. The rotation seemed to work for me. I tried specifying
the fontFamily in the css and by using setStyle. These all worked, so maybe I’m
not getting the case that you are running into. Here is the code I was using: <?xml version="1.0"
encoding="iso-8859-1"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" > <mx:Script> <![CDATA[ private function setcc(): void { label1.setStyle("fontFamily",
"ComicSans");
text1.setStyle("fontFamily", "ComicSans");
ti1.setStyle("fontFamily", "ComicSans"); } ]]> </mx:Script> <mx:Rotate id="myRotate"
angleFrom="0" angleTo="180" /> <mx:Style source="comicsans.css"
/> <mx:Label id="label1"
htmlText="<a href=''>I am sss comic
sans</a>" /> <mx:Button label="play
rotate" click="myRotate.play([label1, text1, ti1])" /> <mx:Text id="text1"
htmlText="<a href=''>I am sss comic
sans</a>" /> <mx:TextInput id="ti1"
htmlText="<a href=''>I am sss comic
sans</a>" /> <mx:Button label="set styles"
click="setcc()" /> </mx:Application> -------- comicsans.css
-------------------- @font-face { src:
url("assets/comic.ttf"); fontWeight:
"normal"; fontFamily:
"ComicSans"; } @font-face { src:
url("assets/comicbd.ttf"); fontWeight: "bold"; fontFamily: "ComicSans"; } Thanks, Joan From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jeremyrichman I have a Text field that I want to rotate but it must
display html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] Rotating html text Joan Lafferty
- [flexcoders] Re: Rotating html text jeremyrichman
- RE: [flexcoders] Re: Rotating html text Joan Lafferty
- [flexcoders] Re: Rotating html text jeremyrichman
- Re: [flexcoders] Rotating html text Johannes Nel
- Re: [flexcoders] Rotating html text Alias™

