[haXe] flash9 load or trace problem
Toshiharu Nishiwaki
tocy at ize.co.jp
Wed Aug 1 13:20:24 CEST 2007
Hi, Nicolas
I solved the problem.
from old message.
> case 2 ... compile in 2 other hxml file and load swf from one.
>
> Loaded movie not ready to trace, wait a few frames
> at Boot_DA61EA$/__trace()[/usr/local/lib/haxe/std/flash9/Boot.hx:108]
> at MethodInfo-56()[/usr/local/lib/haxe/std/haxe/Log.hx:31]
> at Test1$/main()[src/Test1.hx:18]
> at MethodInfo-61()
> at Boot_DA61EA$iinit()[/usr/local/lib/haxe/std/flash9/Boot.hx:59]
I found the haXe source code.
This code is an old CVS version of haxe/genswf9.ml.
boot = "Boot_" ^ Printf.sprintf "%X" (Random.int 0xFFFFFF);
A cause of this problem is the behavior of OCaml Random.init on Linux.
the behavior is not actually random.
so I changed the code to:
..
...
let init = Random.self_init () in
let ctx = {
boot = "Boot_" ^ Printf.sprintf "%X" (Random.int 0xFFFFFF);
strings = strings;
...
..
insert the OCaml code - Random.self_init (),
and compile it.
I solved the problem.
thx.
Best Regards,
-Toshiharu.N
=======================================
iZE Co., Ltd. ( http://www.ize.co.jp/ )
Tel: 0596-20-6020 / Fax: 0596-20-6023
IP Phone: 050-3540-3313 (OCN)
---------------------------------------
Position: Director of Product Devel.
Name: Toshiharu NISHIWAKI
E-mail: tocy at ize.co.jp
Skype ID: tocy.ize.jp
=======================================
More information about the Haxe
mailing list