Skip to main content
kyehoward
Participant
January 4, 2020
Question

i'm trying to create show hide toggle for a video in html5 canvas. long winded version should work

  • January 4, 2020
  • 0 replies
  • 102 views

Hi, i'm using the latest 2020 cc version of animate. I'm trying to make a show hide toggle button for some movies. I made a long winded version as i couldn't make it work elegantly so the code shows a movie and hides the show movie button whilst showing a hide button. Then the user clicks the hide button to hide the movie and the hide button whilst showing the show button. The buttons show up and hide ok but the movie only shows, i cannot make it hide again.

 

Any advice or help greatly received. 

/*

this.about_direc_btn_hide.visible = false;
this.break_t_m.visible = false;
 
 
this.about_direc_btn_show.addEventListener("click", fl_MouseClickHandler_4.bind(this));
function fl_MouseClickHandler_4()
{
 this.break_t_m.visible = true;
 this.about_direc_btn_hide.visible = true;
 this.about_direc_btn_show.visible = false;
 
 
}
 
 
this.about_direc_btn_hide.addEventListener("click", fl_MouseClickHandler_6.bind(this));
function fl_MouseClickHandler_6()
{
 this.break_t_m.stop();
 this.break_t_m.visible = false;
 this.about_direc_btn_hide.visible = false;
 this.about_direc_btn_show.visible = true;
}
*/
This topic has been closed for replies.