Highlighted

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

New Here ,
Jan 03, 2020

Copy link to clipboard

Copied

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;
}
*/
TOPICS
Code, How to

Views

21

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

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

New Here ,
Jan 03, 2020

Copy link to clipboard

Copied

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;
}
*/
TOPICS
Code, How to

Views

22

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
Jan 03, 2020 0

Have something to add?

Join the conversation