Skip to main content
Participating Frequently
November 7, 2018
Question

[Animate CC] Custom buttons for component video player

  • November 7, 2018
  • 1 reply
  • 438 views

Hi,

I used video components to input my video to animate file,

Everythings works great if I use buttons,

but when try to make my own custom buttonst I can`t run it

I used this code:

if(!this.pauza_click_cbk) {

function pauza_click(evt) {

console.log("Button clicked");

$("#movieClip_1")[0].pause();

}

$("#dom_overlay_container").on("click", "#pauza", pauza_click.bind(this));

this.pauza_click_cbk = true;

}

I need it because I want to make only one my custom button to play and stop video and another to mute and unmute sound.

    This topic has been closed for replies.

    1 reply

    Legend
    November 7, 2018

    Okay, so how is it failing? Are you getting any error messages in the console?

    luca2424Author
    Participating Frequently
    November 7, 2018

    hi,

    no errors in console but its no react to pause or play.

    I've created movieclip And called it "pauza"

    I used components from snipped code to input video player.

    Im graphic designer qnd not familiar with codning

    luca2424Author
    Participating Frequently
    November 7, 2018

    Please take a look

    https://www.dropbox.com/s/rbsh0hputiq8zs4/video_ok.fla?dl=0

    blue square doesnt work