Skip to content

HashLink Casting Error  #6

@erikwatson

Description

@erikwatson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions