Skip to content

Include published project .js file in Ionic #6

@JoeMeeks

Description

@JoeMeeks

What is the best way to include the IIFE javascript output file published from Adobe Animate in Ionic? I tried importing the resulting file like so:

import '../../scripts/animate-output.js'

But this results in the error:

Uncaught TypeError: cjs.MovieClip is not a constructor

Peeking into the animate-output.js file, I see it is an instantly-invoked function expression that starts with:

(function (cjs, an) {

and ends with:

})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions