Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[Animate CC] Custom buttons for component video player

New Here ,
Nov 07, 2018 Nov 07, 2018

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.

405
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 07, 2018 Nov 07, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2018 Nov 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2018 Nov 07, 2018

Please take a look

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

blue square doesnt work

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 07, 2018 Nov 07, 2018

Worked fine for me. I click the button "STOP" and the video stops.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2018 Nov 07, 2018

Yes, but I cant make work the blue square. In my first post I wrote that componnent buttons are ok

"blue square doesnt work"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 08, 2018 Nov 08, 2018
LATEST

I`ve try make one button for two functions.

(play/stop) but it only work once.

Below my fla

Dropbox - video_ok.fla

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines