Author Topic: ReferenceError: Error #1074  (Read 191 times)

Shalmu Yakubov   «   on: May 16, 2012, 05:20:55 AM »
I try to use the Flare3d with a HaXe compiler. After it is compiled and started, I get a error:
ReferenceError: Error #1074: Illegal write to read-only property Register on global.

        at global$init()

This error is thrown even if I only use "scene = new Viewer3D( this );" in the constructor. If I don't use any flare3d API, no error is thrown.
I look into the result swf file and see that there are two global Register classes, with different contents.
How can it be solved? Maybe global Register class should be inside some package to prevent the write to read only?


Ivan Vodopiviz   «   Reply #1 on: May 16, 2012, 10:17:20 AM »
Hi,

Truth be told, we never tried using Flare3D with HaXe, so I we have no idea what the problem might be. Could you please send us a small example project we can test? Maybe we can get Flare3D working nicely with HaXe when 2.5 releases.

Cheers,

Shalmu Yakubov   «   Reply #2 on: May 16, 2012, 12:42:58 PM »
OK, I have sent it to flare 3d info@ email. Thank you!

Shalmu Yakubov   «   Reply #3 on: July 06, 2012, 02:06:00 PM »
Hey guys, no need to fix it - there is a workaround in HaXe: http://code.google.com/p/haxe/issues/detail?id=992
I'm so glad I don't need to go back to AS3, and I can use Flare3D with haXe directly!