Highlighted

Particles.js include?

Explorer ,
Nov 26, 2019

Copy link to clipboard

Copied

Hello,

 

Has anyone ever used an external library like Particles.js?

https://vincentgarreau.com/particles.js/

I have tried adding variety of ways:

 

  1. add the library to the global action panel, and then call the attribute script on a frame (pointing to a movieclip on the stage to apply the effect)
  2. loading the library in the head manually, and embeding the script on the HTML template page, keeping the frame on the stage as the target for the effect)
  3. calling the script with jQuery, and then loading the attribute script on complet.

 

...nothing seems to do the trick. Any suggestions?

 

 

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

CreateJS manages the canvas in HTML5 Canvas documents. Anything drawn directly to the same canvas element that CreateJS uses will get clobbered. This particle script is written to draw directly to a canvas element. It is not written to use the CreateJS API to draw into a movieclip. So it's not going to work without some surgery.

TOPICS
Code, How to, Other

Views

101

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

Particles.js include?

Explorer ,
Nov 26, 2019

Copy link to clipboard

Copied

Hello,

 

Has anyone ever used an external library like Particles.js?

https://vincentgarreau.com/particles.js/

I have tried adding variety of ways:

 

  1. add the library to the global action panel, and then call the attribute script on a frame (pointing to a movieclip on the stage to apply the effect)
  2. loading the library in the head manually, and embeding the script on the HTML template page, keeping the frame on the stage as the target for the effect)
  3. calling the script with jQuery, and then loading the attribute script on complet.

 

...nothing seems to do the trick. Any suggestions?

 

 

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

CreateJS manages the canvas in HTML5 Canvas documents. Anything drawn directly to the same canvas element that CreateJS uses will get clobbered. This particle script is written to draw directly to a canvas element. It is not written to use the CreateJS API to draw into a movieclip. So it's not going to work without some surgery.

TOPICS
Code, How to, Other

Views

102

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
Nov 26, 2019 0
Adobe Community Professional ,
Nov 26, 2019

Copy link to clipboard

Copied

CreateJS manages the canvas in HTML5 Canvas documents. Anything drawn directly to the same canvas element that CreateJS uses will get clobbered. This particle script is written to draw directly to a canvas element. It is not written to use the CreateJS API to draw into a movieclip. So it's not going to work without some surgery.

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...
Nov 26, 2019 1