Hi guys,
I have an FLV emdedded inside a movie clip called “movie1”.
I am trying to add some controls to it, but without the use of buttons. I want the movie clip itself to be the ‘buttons’. I have been able to get it to play/pause through the use of this code, on “movie1”:
onClipEvent (load) {
this.movie1 = true;
}
on (release) {
this.movie1 ? this.stop() : this.play();
this.movie1 = !this.movie1;
}
It works fine and I am most happy with the assistance I found on this forum to do this. I however want to add an extra level of control.
I want the movie to scrub or rewind, frame by frame when you click and drag on the movie to the left. (Note: movie clip stays still, you are just dragging ON it, to the left.) I also want the opposite to happen. When you drag to the right, it scrubs forward, frame by frame.
I have been able to get it to do this through the use of a key press action:
on (keyPress "<Left>") {
this.prevFrame();
}
on (keyPress "<Right>") {
this.nextFrame();
}
Works a charm, but like I said I want to be able to control this, not through keyPress, but mouse dragging left and right, on the movieclip itself, “movie1”.
Any help would be totally cool!
Cheers,
Enforcer73