ActionScript 2.0 :: Rewind The Timeline With A Button?

Sep 26, 2006

I am doing a postcard flip and would like to rewind my timeline when a button is released. I tried to modify the complexbutton but didn't really get the effect that I was after.

What I am trying to do 1) when the movie opens, I have an arrow to the right, what I want to happen is, when it is clicked, the movie plays and stops at the last frame, easy enough.

2)When the movie is on the last frame there is another button, and when that one is clicked, I want thee movie to reverse. It can't be that hard, can it?

[URL]

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Press The Previous Button To Rewind The Timeline, The Movie Clip Does Not Stop?

Aug 5, 2009

I would like to create an image sliding effect using next and previous buttons. For example the sliding images on the homepage here: http:[url]....I know this is not in flash, but that's the effect I'm trying to create using flash.

I followed the help quoted below. However, when I press the Previous button to rewind the timeline, the movie clip does not stop. For example, if I am on image 3 in the slider and press the previous button...instead of going to image 2, it slides all the way back to image 1 without stopping.

Quote:
ActionScript 2:Notice how, in the link to the example, all of the images/slides are the same size. Create a few of those before you begin.

1. Convert each image/slide to it's own Movie Clip, so that you can go always go back and adjust them if needed....as well as other useful reasons.

2. You only need 2 layers for now, Actions & Container. On frame1, add a stop action to the frame on your actions layer. Then, place all of your Movie Clips on the stage, on the Container layer. Line them up horizontally, edge-to-edge. Select them all and convert to a Movie Clip named "container".

3. On the Container layer, Insert A Keyframe > move the Container Movie Clip to the left so that the next slide is now in place on the stage > Right click in between the two Keyframes and choose "Create Motion Tween". You should have the animation from slide 1 to slide 2 now. Repeat this process for 2 -3, 3-4, 4-5 ......(don't worry about the reverse!)

4. We need to create buttons to go to the next and previous slide. Make a new layer called Buttons. Create 2 buttons, one for Next and one for Previous. These can be Movie Clips OR Buttons, just place them on the stage give one an instance name of "next_btn" & "prev_btn" (no quotes) for the other.

5. All that's left is to add some actions to a few frames on the Actions layer.

a) Add a stop action to every frame where the slide will be static (still), you should already have one on the first frame from step 2.

b) Now here's where the magic happens. If we test the movie now, the slides will just play and over. So add this code to the frame 1 on the Actions layer:

Code:
stop();//already have this stop action, just add the below
this.onEnterFrame = function(){[code]....

View 1 Replies

Any Way To Control Timeline Forward And Rewind?

Jul 2, 2008

What I need its a way to control my timeline forward and rewind. To make it easy to explain I will make a example: Imagine that you have a movie (cars crossing a street - with trucks and buses too). Sometimes there is just cars on the street, sometimes just trucks. I should paste this movie into my timeline(like image sequence), in the background of my application. In other layer will be informations, in this example, about trucks and cars. Till this point ok. But I need to make the movie go to the frame that I choose to be the image of the movie that only have cars.

Okay ... this is in frame 15 of the movie. Then I click a button and go to show trucks info. I click and go to frame 30... at this point ok too. But now I click again to see about cars. Its in frame 15 and I don't want to "JUMP" (like gotoandstop)... I want the movie rewinds (in the speed that it plays) till I get frame 15. How do I control the timeline like this? (There will be at least 6 points in this movie that i want to stop by. And this movie begins stopped.)

View 14 Replies

ActionScript 2.0 :: How To Rewind Main Timeline From MC

Nov 2, 2006

I have an external swf that I loaded into level 5. In this swf I have a MC (a button in the mc) that I want onPress or onRelease have the main timeline of the swf not the MC, rewind to frame 1 and then unload level 5.

For the life of me I can't fugure this out.

View 3 Replies

ActionScript 2.0 :: [mx2004] Limiting A Rewind Call On The Timeline?

Nov 25, 2006

I am using the following code to perform a rewind on the timeline when a button is pressed:On the REWIND button:

Code:
on(release){
rewState = true;[code].....

My question is, can I limit the rewind feature to just 12 frames at a time? Right now it rewinds back to the beginning, totally skipping all the stop(); commands on the timeline. I've tried for, do, and while loops in various places (one nearly froze my computer up!) with no luck.

update: I've added the following to the code so the user can at least stop the rewinding:

Code:
on(rollOver){
rewState = true;
}[code]....

but the thing moves forward in 12frame intervals.It is wierd having it move in reverse freely like this. So I am still looking for a way to get it to move the timeline backwards in 12 frame intervals...

View 2 Replies

ActionScript 3.0 :: Control PrevFrame On The Timeline With A Play / Rewind Type Motion

May 27, 2011

I am having a fair amount of trouble trying to control prevFrame on the timeline, with a play/rewind type motion. Basically, what I want to do is navigate between 3 keyframes on the timeline with 'next' and 'prev' buttons controlling it. I have no problem navigating forward, but when the previous button is pressed on the last keyframe, it just rewinds to the first keyframe. I have stop(); commands on each keyframe, but it seems to skip over the second keyframe when rewinding. The buttons are present throughout the length of the timeline. Here are my actions for the first frame;

[Code]...

View 3 Replies

ActionScript 2.0 :: OnRollout Cancels OnRelease - Play An Mc Timeline On Rollover And Rewind The Mc On Rollout?

Jul 7, 2010

i have some script that i am using to play an mc timeline on rollover and rewind the mc on rollout, but my problem is that i want to add an onRelease action that takes the mc to an specific frame within the mc. thing is that the onRollout action cancels out the onRelease action and rewinds the mc regardless. this is the script that i have on the first frame of the mc

[Code]...

View 4 Replies

ActionScript 2.0 :: Rewind 5 Frames Button?

Sep 12, 2007

how can i make a i rewind button and return just 5 frames?

i try this:

on(release){
_root.gotoAndPlay(_root._currentframe - 9);
}

but i try rewind animation, like prevFrame().

View 5 Replies

ActionScript 3.0 :: Flash Rewind Button?

Oct 19, 2010

Code:
forward_btn.addEventListener(MouseEvent.CLICK, forwardfunction);

function forwardfunction(event:MouseEvent):void[code]....

I have a strip of pictures that moves from left to right when user clicks "forward" button, pauses when the "pause" button is clicked and rewinds when "rewind" button is clicked.My problem is that after rewind cycle is complete, none of the buttons work again. Also, while in rewind mode, pause button does not pause it.I also had if and else statements for rewindfunction as

Code:
if (port_mc.currentFrame == 1)
{
port_mc.stop();[code]....

View 2 Replies

ActionScript 3.0 :: Creating A Video Rewind Button?

Jul 14, 2009

I'm using the FLVPlayback component and I need a rewind button. I don't want it to go back to the beginning of the video, only go back a couple of seconds everytime the button is pressed.

View 16 Replies

ActionScript 3.0 :: Rewind And Forward Button Navigation?

Oct 1, 2009

I'm using CS4 with AS3 and have a little problem with my rewind and forward buttons. For the play and stop buttons it works fine with this script:

playButton.addEventListener (MouseEvent.CLICK, playButtonClick);
function playButtonClick (e:MouseEvent):void
{
play();

[Code]....

I get error messages.

All I need is to rewind and forward the movie about 50 frames and keep playing without stopping.

View 2 Replies

ActionScript 2.0 :: Play And Rewind Movie Clip Button?

Oct 2, 2009

I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.I was trying to use this code to scroll down from the first set of 5 to the second:

on (release) {
design_thumbnails.gotoAndPlay (20)
}

When I click the button nothing happens I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.

Here's what it looks like:I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.I was trying to use this code to scroll down from the first set of 5 to the second:

on (release) {
design_thumbnails.gotoAndPlay (20)
}

When I click the button nothing happens I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.

View 3 Replies

ActionScript 3.0 :: Video Player - How To Get Rewind Or Start Again Button

Jul 21, 2011

I am creating a video player with my own buttons, play stop are easy, but I can't for the life of me get it to rewind or start again (not loop). It may be worth noting that the flash video is store within a movie clip! The flv instance is flv_close and the movie instance is mv_close.

View 4 Replies

Professional :: Moving Rewind Button Code To Actionscript Frame?

Jan 5, 2011

I was told that putting code on buttons is bad practice now. So, I'm trying to move my button codes to my main actionscript frame. I did it find with the play and stop/pause buttons. However, the rewind and forward buttons are proving more difficult How would the code look if I transferred it from my button to my actionscript frame I'll post the code I have right now in my rewind button.

on(press){this.onEnterFrame = function(){frame = theTargetClip_mc._currentframe;theTargetClip_mc.gotoAndPlay(frame-6);}}on(release){ theTargetClip_mc.play();delete this.onEnterFrame; }rect" answers.

[code]....

View 1 Replies

ActionScript 1/2 :: Create A Pause, Resume, Rewind, Or Fast Forward Button For An External Mp3?

Aug 3, 2010

I'm loading an external .swf using the following code:
 
voiceover = new Sound ();voiceover.loadSound("Audio/Test.mp3", true);
 
The audio plays fine. My question is how can I create a pause, resume, rewind, or fast forward button for an external mp3?

View 1 Replies

ActionScript 2.0 :: Rewind And Fast Forward Buttons Start To Mess Up When Fast Forward Or Rewind Past The Current Scene?

Apr 1, 2009

Problem is that my rewind and fast forward buttons do not work properly in the sense that they start to mess up when you fast forward or rewind past the current scene. It seems to just skip through the whole movie and totally mess up the animation.the code for the controls is on a single layer and reads as the following:

stop();
play_btn.onRelease = function (){
play();

[code].....

View 4 Replies

ActionScript 3.0 :: Change Parent Timeline From A Button In The 'Child' Timeline

Apr 30, 2009

I am just trying to use actionscript 3.0 (Flash CS4) to change the 'Parent' timeline from a button in the 'Child' timeline

[Code]...

View 2 Replies

ActionScript 2.0 :: Link A Button Thats Embedded In Frame 2 (music Page Timeline) To A Frame In The Main Timeline?

Nov 22, 2011

How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.

View 1 Replies

ActionScript 2.0 :: Tell Flv To Rewind?

Feb 23, 2006

Just want it to go back to the start.....how do I do it? What is the syntax?

View 2 Replies

ActionScript 2.0 :: Tell My Flv To Rewind?

Feb 23, 2006

I have an flv on the stage...with an instance name.

This is the code I'm using to tell it to pause. Which is simple.

View 1 Replies

ActionScript 3.0 :: Rewind And Play Mc?

Sep 3, 2009

I have a very simple animation in a movieclip (witch is placed on the stage) has about 300 frames.i also have for and back buttons on the stage. now i need to setup functions for the back button. to play my mc backwards and if its on the first frame it should got to .totalFrames and play backwards. i think i can use .play() for the for button.

View 7 Replies

ActionScript 3.0 :: How To Rewind A Tween

Mar 10, 2010

how to rewind a tween. but I dont want it to just snap back to the beiginning. I want it to yoyo back to the beingining without actually yoyoing many times.this is the code I have which make the beginning motion I want:

Code:
public function imageSelectR(e:MouseEvent):void {
myTween = new Tween(imageLoaderHost, "z", Regular.easeInOut, 0, -100, 1, true);
myTween.addEventListener(TweenEvent.MOTION_FINISH, imageSelectL);

[code]....

View 5 Replies

ActionScript 1/2 :: Forward And Rewind With Video?

Apr 29, 2009

I am building a video player and would like to have a forward and rewind button. I was looking at tutorials and it seems like none of them have this. Is there a reason for this?

View 5 Replies

ActionScript 3.0 :: Controlling Loaded Swf Rewind?

Aug 2, 2009

I need to bring the playhead to the begining (rewind) each time the onsound button is clicked. But a loadimage function was used to load the swf.

View 10 Replies

ActionScript 2.0 :: Rewind To Final Frame

Jan 28, 2009

I have a .fla that has a movieclip in it with an frame by frame animation of a rotating pyramid.The script that I have, when the user drags the mouse horizontally for the right, the animations play, and for the left, it plays rewind. But when it is on frame 1 and I try to go back, it stops![code]How could I make the first frame go to the final frame when I drag the mouse for the left?

View 2 Replies

ActionScript 3.0 :: Make A Rewind Function?

Aug 20, 2009

I'm attempting to make a rewind function, but have no idea where to start.

I have a movie that spans over 60 frames and rotates. I would like the user to be able to click a button and make the movie rewind and tween to go to that frame.

For example, if the movie is on frame 55 and the user clicks a button, I want to movie to tween backwards (frame 54, frame 53, frame 52, etc etc) until it gets to frame 45.

View 4 Replies

Actionscript 3.0 :: How To Rewind A Movie Only Ten Frames

Jun 7, 2009

I have a movieclip that is basically a scroll through of several pages. Every ten frames is another page. I have a next button and a previous button. The next button plays the movie for ten seconds and I would like for the previous button to rewind the clip for ten seconds.This is what I have right now:

previous_r1.addEventListener(MouseEvent.CLICK,prev iousr1);
function previousr1(event:MouseEvent):void {
movieclip1.addEventListener(Event.ENTER_FRAME,rewi nd);

[code].....

View 6 Replies

ActionScript 2.0 :: Rewind Transistions Instead Of Playin Out?

Apr 6, 2004

ive search for some tuts on transistionsi found this [Click Here] but i was wondering if instead of making a complete PLAYOUT part i could just have a rewind frames option!!o what i mean is!!nstead of having frame

1-10 - play in
11- stop
12-22 - play out

[code]....

View 11 Replies

Button To Go To Different Part Of Timeline?

Apr 9, 2009

I am using a template that the buttons have actionscript in them already. I tried replacing "get url" with "gotoAndPlay" a certain frame. I need the button to go to frame 113 after i click on this button.

on (rollOver) {
if (_root.link<>p) {
gotoAndPlay("s1");

[Code].....

View 2 Replies

Button Timeline Not Showing

May 18, 2009

I'm sure this is probably something simple, but sometimes when I double click a button on the stage to enter its timeline, I don't get the up, over, down, hit, timeline. I just get a timeline that looks like a regular layer.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved