Anyone able to translate sIFR into AS3 (for hyphenation and with the help of a converter)?

[亡魂溺海] 提交于 2020-01-05 04:12:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!