Anyone able to translate sIFR into AS3 (for hyphen

2019-08-09 21:58发布

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条回答
爷、活的狠高调
2楼-- · 2019-08-09 22:48

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.

查看更多
登录 后发表回答