Highlighted

Load movie animate HTML.

Explorer ,
Aug 03, 2020

Copy link to clipboard

Copied

Hello,

The following code:
var myClip = new lib.LibraryClipl();
this.addChild(myClip);

works to load a graphical occurrence of the library but does not seem to work to load a movieClip occurrence. Did I make a mistake or is there another code? Also, is there a way to delete this loaded clip?

Thank you very much for all your help.

Views

66

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Load movie animate HTML.

Explorer ,
Aug 03, 2020

Copy link to clipboard

Copied

Hello,

The following code:
var myClip = new lib.LibraryClipl();
this.addChild(myClip);

works to load a graphical occurrence of the library but does not seem to work to load a movieClip occurrence. Did I make a mistake or is there another code? Also, is there a way to delete this loaded clip?

Thank you very much for all your help.

Views

67

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 03, 2020 0
ClayUUID LATEST
Adobe Community Professional ,
Aug 03, 2020

Copy link to clipboard

Copied

You can't "load" movieclips in HTML5 Canvas documents. What you're attempting to do there is instantiate an already-loaded symbol from the library.

 

There is no difference between the code for adding graphics vs adding movieclips. If your movieclip-adding code isn't working, you've messed something up.

 

And yes, there's a way to delete added clips.

https://www.createjs.com/docs/easeljs/classes/Container.html#method_removeChild

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 03, 2020 0