Skip to main content
raphjac
Participating Frequently
January 21, 2017
Answered

A tutorial : how insert interactivity with HTML 5 canvas would be great.

  • January 21, 2017
  • 2 replies
  • 458 views

Hello,

Last week i wondered where it was possible to find a book about html canvas to insert interactivity in our animations.

One week later, I would be very pleased if someone would create a tutorial to explain how coding HTML 5 canvas script to allow a button in a clip to stop and play it.

For example in this case .

Thank you

Jack

This topic has been closed for replies.
Correct answer kglad

open the snippets panel and it shows sample code to do that:

this.clip.btn.addEventListener('click',f.bind(this));

function f(e){

this.clip.play();

}

2 replies

Community Expert
January 23, 2017

You can also watch some Lynda: Online Courses, Class, Training, Tutorials to help you with actionscript.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 21, 2017

open the snippets panel and it shows sample code to do that:

this.clip.btn.addEventListener('click',f.bind(this));

function f(e){

this.clip.play();

}

raphjac
raphjacAuthor
Participating Frequently
January 22, 2017

Thank you so much!

Best regards

Jack

kglad
Community Expert
Community Expert
January 22, 2017

you're welcome.