构建haxe nme项目的html5版本的问题

时间:2013-04-03 07:24:01

标签: html5 flash haxe nme

我尝试构建nme-runnermark的html5画布版本,但没有取得任何重大成功。 Flash版本没有任何问题。 我得到以下一堆错误:

/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:22: characters 46-47 : Property initialization is not allowed
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:24: characters 27-28 : Member variable initialization is not allowed outside of class constructor
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:26: characters 29-30 : Member variable initialization is not allowed outside of class constructor
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:30: characters 33-38 : Member variable initialization is not allowed outside of class constructor
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:833: characters 28-52 : Cannot access to private field nmeValidateMatrix
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:905: lines 905-909 : Field get_width has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:236: lines 236-262 : Field nmeGetObjectUnderPoint has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:610: characters 3-20 : Cannot access to private field nmeSetFlag
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:265: lines 265-302 : Field nmeRender has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:740: characters 3-29 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:916: characters 3-29 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/text/TextField.hx:912: lines 912-935 : Field set_width has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:519: characters 3-43 : Cannot access to private field nmeGetInteractiveObjectStack
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:431: characters 3-43 : Cannot access to private field nmeGetInteractiveObjectStack
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:446: characters 4-24 : Cannot access to private field nmeDispatchEvent
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:478: characters 4-24 : Cannot access to private field nmeDispatchEvent
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Bitmap.hx:62: lines 62-88 : Field nmeGetObjectUnderPoint has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Bitmap.hx:91: lines 91-148 : Field nmeRender has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1110: characters 3-34 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1116: characters 3-30 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1301: characters 4-30 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:1328: characters 4-30 : Cannot access to private field nmeInvalidateBounds
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Shape.hx:29: lines 29-33 : Field nmeGetGraphics has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Shape.hx:36: lines 36-50 : Field nmeGetObjectUnderPoint has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:299: characters 6-30 : Cannot access to private field nmeGetGraphics
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObject.hx:323: characters 48-73 : Cannot access to private field _topmostSurface
/usr/lib/haxe/lib/nme/3,5,5/browser/display/Sprite.hx:38: lines 38-42 : Field nmeGetGraphics has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/display/DisplayObjectContainer.hx:212: lines 212-222 : Field nmeBroadcast has different visibility (public/private) than superclass one
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:441: characters 59-65 : Unknown identifier : length
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:441: characters 68-76 : Unknown identifier : position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:446: characters 9-21 : Unknown identifier : littleEndian
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:453: characters 2-14 : Unknown identifier : littleEndian
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:453: characters 2-14 : Invalid assign
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:35: characters 19-28 : Unknown identifier : allocated
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:122: characters 2-14 : browser.utils.ByteArray has no field length
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:122: characters 17-32 : browser.utils.ByteArray has no field allocated
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:260: characters 12-25 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:263: characters 9-22 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:265: characters 25-38 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:274: characters 67-80 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:278: characters 27-40 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:279: characters 88-101 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:283: characters 27-40 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:284: characters 27-40 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/utils/ByteArray.hx:285: characters 109-122 : browser.utils.ByteArray has no field position
/usr/lib/haxe/lib/nme/3,5,5/browser/net/URLLoader.hx:150: characters 37-48 : browser.utils.ByteArray has no field length

我注意到自从我将nme升级到版本3.5.5后,开始出现这些问题。它不仅发生在nme-runner标志上,而且一般来说,几乎任何nme项目都是我试图建立一个html5版本。我的下一个尝试是摆脱当前版本的nme,并尝试使用旧版本。

无论如何,我想知道是否有其他人遇到过类似的问题

1 个答案:

答案 0 :(得分:0)

NME 3.5.5需要Haxe 2.10或最新版本。下载并安装它应该没问题。