Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HashLink Casting Error #6

Open
erikwatson opened this issue Sep 18, 2020 · 0 comments
Open

HashLink Casting Error #6

erikwatson opened this issue Sep 18, 2020 · 0 comments

Comments

@erikwatson
Copy link

erikwatson commented Sep 18, 2020

Hey Josh, I'm not sure to what degree the SWF lib is expected to work with HashLink but I thought I should mention this. It seems to work okay in the neko, html5 and linux desktop targets.

The error appears in an otherwise blank openfl project when running openfl test hashlink
I have a single, fairly large swf pulled from an swc file, with lots of symbols exported for actionscript.
<library path="Assets/library.swf" preload="true" generate="true" />

The window appears, but with no contents painted, it's completely transparent, then after a few seconds the following is output to the console and the window closes.

Uncaught exception: Can't cast String to i32
Called from swf.exporters.animate.AnimateLibrary.~load.0(swf/exporters/animate/AnimateLibrary.hx:238)
Called from swf.exporters.animate.AnimateLibrary.~load.2(lime/app/Module.hx:0)
Called from lime.app.Future.onComplete(lime/app/Future.hx:128)
Called from swf.exporters.animate.AnimateLibrary.load(swf/exporters/animate/AnimateLibrary.hx:277)
Called from lime.utils.$Assets.~loadLibrary.0(lime/utils/Assets.hx:430)
Called from lime.utils.$Assets.~loadLibrary.1(lime/app/Module.hx:0)
Called from lime.app.Future.onComplete(lime/app/Future.hx:128)
Called from lime.utils.$Assets.loadLibrary(lime/utils/Assets.hx:412)
Called from lime.utils.Preloader.updateProgress(lime/utils/Preloader.hx:238)
Called from lime.utils.Preloader.load(lime/utils/Preloader.hx:181)
Called from $ApplicationMain.create(ApplicationMain.hx:128)
Called from $ApplicationMain.main(ApplicationMain.hx:25)
Called from fun$8236(?:1)

Versions

  • haxe: 4.1.3
  • openfl: 9.0.2
  • swf: 3.0.2
  • os: Xubuntu 20.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant