-
I am looking to use action script to make a rewind button that only rewinds 20 frames and stop. No matter where the person is in the movie. I am using flash and quicktime to make an instructional guitar video for some friends. I want them to be able to rewind just the last lic and then hit play, to try it again.
-
Hi
There are many sample FLAs and components on this site and elsewhere that you can use and then adjust to what you are looking for.
You can look here:
http://dynamic.macromedia.com/bin/MM...?product=flash
http://www.flashcomponent.com/
http://www.flashcomponents.net/
You can also look on our site here:
http://www.wildform.com/resources/tutorials.php
Look under "Creating Customized Multimedia Players with Flix and Flash:"
jb
http://www.wildform.com
-
To add fast foward and fast rewind create two buttons.
on the ffwd button put this code
Code:
on (press) {
_root.ffwd = true;
}
on (release) {
_root.ffwd = false;
}
on the frwd button put this code
Code:
on (press) {
_root.frwd = true;
}
on (release) {
_root.frwd = false;
}
Place an instabce MC of the video on the main timeline with an instance name of "vid" and put this code:
Code:
onClipEvent (enterFrame) {
if (_root.ffwd == true) {
frame = this._currentframe +20
this.gotoAndStop (frame);
}
if (_root.frwd == true) {
frame = this._currentframe -20
this.gotoAndStop (frame);
}
}
on the "play" button put this code:
Code:
on (release) {
_root.vid.play();
}
You can even add a pause button:
Code:
on (release) {
_root.vid.stop();
}
It's that easy :D
Hope this helps!