A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: rewind

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    1
    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.

  2. #2
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    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

  3. #3
    The Metamorphic Mutant Mystique_MHz's Avatar
    Join Date
    Mar 2002
    Location
    Orlando, FL
    Posts
    218
    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
    Hope this helps!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center