问题
One thing asked for a lot with sIFR is hyphenation.
Now I almost solved it with integrating Hyphenator.as http://vis4.net/blog/2010/05/as3-hyphenation/.
The only problem is that Hyphenator.as is written in AcionScript 3, while sIFR is in ActionScript 2.
I found an AS2 to AS3 converter www.5etdemi.com/blog/archives/2006/11/as2-to-as3-converter-createtextfield-geturl-handling/ but the result examples.bezel.be/sIFR-as3.as is not working yet.
Anyone able to contribute to making hyphenation work in sIFR?
(Sorry for the links, but weirdly I am only allowed to post one link. Really weird.)
回答1:
Unfortunately it's not that easy. AS2 and AS3 are substantially different languages, with different API's into the flash player. It's not just a simple renaming or different syntax, the fundamental way many things work has changed.
Why do you need hyphenation for sIFR? I thought the point of sIFR was for headings, things that shouldn't be wrapping in the first place, and not for big blocks of text.
来源:https://stackoverflow.com/questions/2822884/anyone-able-to-translate-sifr-into-as3-for-hyphenation-and-with-the-help-of-a-c