2013年4月15日 星期一

mp4box: Adding Subtitles to mp4 Movies for Apple TV

Download and install mp4box on windows.

1. srt file use UTF-8 encoding
2. mp4box -ttxt origin.srt
3. try to change the font size
-<TextStreamHeader width="400" height="60" ...
+<TextStreamHeader width="video.width" height="video.height*20%" translation_x=0 translation_y="video.height*80%"
4. mp4box -add origin.ttxt:hdlr=sbtl:lang=eng -add origin.mp4 output.m4v

enjoy it...:)

2013年4月11日 星期四

FlashDevelop: getDefinitionByName ReferenceError: Error #1065: Variable ... is not defined.

When I was using getDefinitionByName to create dynamic class.
var myClass:Class = getDefinitionByName('Item1') as Class;

I usually got this error:
[Fault] exception, information=ReferenceError: Error #1065: Variable Item1 is not defined.

Fixed: just including complete library
assets.swf -> Add To Library -> Options -> Included library(include completely)

[ref]
http://www.flashdevelop.org/community/viewtopic.php?p=27575