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

AVM1 SWF AssetLibraries have no AS Linkage names #4

Open
djmuted opened this issue Jul 27, 2020 · 0 comments
Open

AVM1 SWF AssetLibraries have no AS Linkage names #4

djmuted opened this issue Jul 27, 2020 · 0 comments

Comments

@djmuted
Copy link

djmuted commented Jul 27, 2020

SWF AssetLibrary bundles processed by openfl process command only have working AS Linkages if the source SWF file is of AVM2 (AS3) type. AVM1 SWF libraries don't have AS Linkages after being processed by openfl. The same thing happens when using swf-loader typescript package.

import * as libraryAS3 from "../../../assets/login-as3.swf";
import * as libraryAS2 from "../../../assets/login-as2.swf";
...
let library_as3 = await Utilities.GetLibraryAsync(libraryAS3);
let view_as3 = library_as3.getMovieClip("com.clubpenguin.login.views.NewPlayer"); //is a MovieClip
let library_as2 = await Utilities.GetLibraryAsync(libraryAS2);
let view_as2 = library_as2.getMovieClip("com.clubpenguin.login.views.NewPlayer"); //is null
@jgranick jgranick transferred this issue from openfl/openfl Jul 29, 2020
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