HaxeFoundation / HaxeFoundation/haxe

[Flash] Allow flash.Lib.current to be a flash.display.Sprite

Open
#12,808 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Currently, flash.Lib.current can only be a MovieClip, however, a main class on a flash app can be a Sprite.
This causes issues mainly on Haxe Libraries compiled to a SWC, since a user cannot do haxe.initSwc(this); on their main class unless it extends MovieClip (trying to cast to MovieClip still results in current Beeing null).
This is especially am issue if they the user uses a framework whose main class doesn't extend MovieClip but Sprite.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.