Skip to content

AVM1 SWF AssetLibraries have no AS Linkage names #4

@djmuted

Description

@djmuted

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions