I am working in edge animate version 2014
I am wondering if it is possible to have one wheel start spinning in sync with another wheel when it is dragged. I would like these wheels to be synchronized.
Next - I added sound but when the wheel is released the sound does not stop.
Below is my code:
var smallWheel = sym.$('smallWheel');
var bigWheel = sym.$('bigWheel');
Draggable.create(smallWheel, {
type:"rotation",
throwProps:true,
onDrag :function() {
sym.$("rattle")[0].play();
Draggable.create(bigWheel, {type:"rotation", throwProps:true});
},
onRelease :function(){
sym.$("rattle")[0].pause();
}
});