PDA

Click to See Complete Forum and Search --> : rewind



ampslinger
09-26-2002, 01:03 PM
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.

Jonathan_B
09-26-2002, 03:23 PM
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/exchange/main.jsp?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

Mystique_MHz
09-27-2002, 03:04 PM
To add fast foward and fast rewind create two buttons.

on the ffwd button put this code

on (press) {
_root.ffwd = true;
}
on (release) {
_root.ffwd = false;
}


on the frwd button put this 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:

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:

on (release) {
_root.vid.play();
}


You can even add a pause button:

on (release) {
_root.vid.stop();
}


It's that easy :D
Hope this helps!