Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Okay, so how is it failing? Are you getting any error messages in the console?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Please take a look
https://www.dropbox.com/s/rbsh0hputiq8zs4/video_ok.fla?dl=0​
blue square doesnt work
Copy link to clipboard
Copied
Worked fine for me. I click the button "STOP" and the video stops.
Copy link to clipboard
Copied
Yes, but I cant make work the blue square. In my first post I wrote that componnent buttons are ok
"blue square doesnt work"
Copy link to clipboard
Copied
I`ve try make one button for two functions.
(play/stop) but it only work once.
Below my fla
Find more inspiration, events, and resources on the new Adobe Community
Explore Now