Skip to main content
Known Participant
June 26, 2018
Answered

How to create a canvas component?

  • June 26, 2018
  • 2 replies
  • 986 views

Such as Button and so on.

Not dom component.

This topic has been closed for replies.
Correct answer Joseph Labrecque

The way HTML5 Canvas components work is that they exist within a DOM layer overlaying the canvas element.

I have a Pluralsight course that goes over all of this for those interested:
Animate CC Building Custom HTML5 Components – In Flagrante Delicto!

There really is no other way in terms of Animate Components.

2 replies

albertd9194959
Inspiring
June 26, 2018

Canvas within a canvas ?

What are you trying to accomplish ?

Regards,

arvin0Author
Known Participant
June 26, 2018

no, Don't mean that.  canvas compent, such as Button, not as Label, Image and so on.

albertd9194959
Inspiring
June 26, 2018

But, what do you want with the canvas component ? what will you achieve by adding another canvas into your existing canvas ?

Joseph Labrecque
Community Expert
Joseph LabrecqueCommunity ExpertCorrect answer
Community Expert
June 26, 2018

The way HTML5 Canvas components work is that they exist within a DOM layer overlaying the canvas element.

I have a Pluralsight course that goes over all of this for those interested:
Animate CC Building Custom HTML5 Components – In Flagrante Delicto!

There really is no other way in terms of Animate Components.

arvin0Author
Known Participant
June 26, 2018

I know this way, i want to find other way for component way in the same canvas element .