Rewind Button
Hello, I have been playing around with the usage Rewind feature in Flash 8, To illustrate an example, instead of a button, I have a movie clip that plays on mouse over and on mouse-out it rewinds. It works great BUT here is the problemI create Button and as the user hovers their mouse over, more buttons falls down (thats the problem, it will fall down and rewind on mouse-out but the buttons act all as one button, I want them to be clickable individually). Here is an example of what I mean:example:http://www.na-sar.com/test/test.swf How do I make the sub-buttons that fall under clickable rather than it act as a whole one button. please help
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 11-11-2007, 07:11 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Rewind Button
I am a rookie, and I am trying to script rewind button that I chose from the common library. I can load the movie and make it play, stop, and pause, but I can not figure out how to make it rewind or fast forward. I would like the user to click and hold the rewind button and have the movie rewind, and when they let go, have the movie start playing again. Any suggestions? I included the file.
Rewind Button ?
anyone know the code to create a rewind button that will rewind a certain number of frames, say 30?
is it something like: on release, go to and Play, currentframe - 30?
any help appreciated
Rewind Button
How can I make a button that rewinds the root timeline?
I have an animation going into a room... then I want a button called BACK that rewinds the movie so I don't have to animated the tweens again.
What's With The Rewind Button?
I'm making a game, and I noticed that if you just right click the flash movie, you can rewind the swf back to frame 1, where, in most of my swfs at least, all the variables are declared and initialized and everything. So, in my poker game, if you want to refresh your money pile, you just hit rewind.
I tried putting the following code on frame1 before all the variables and stuff:
ActionScript Code:
gameOver = true;
if (gameOver == false){
tracerx.text = "What are you some kind of cheater? Nice Try. ;)";
_root.gotoAndStop(2);
}
and I put _root.gameOver = false; on the start button on frame2, where the game takes place, but nothing happened. I thought it would get to that line of code where it says if gameOver is false, then do not pass go, do not collect brand new variables, go immediately to frame2 and display the stupid message about cheating, but that's not what happened. It's almost like hitting a reset button. Apparently flash goes through all the code on frame1 before returning to frame2, ignoring the instructions... Why is this, and is there any way I can prevent this? Do I load the actual game swf into a level above an empty 'holder' swf? What's the deal?
EDIT:
nevermind. I found a way out of it. I just put only this code on frame 1:
ActionScript Code:
if (gameOver == false) {
tracerx.text = "What are you some kind of cheater? Nice Try. ;)";
_root.gotoAndStop(3);
}
and then I put all the game code on frame 2, with the last line of code saying to gotoAndStop(3) instead of (2).
so since when you first start the swf, gameOver is not defined, it just rolls through to frame2 where the code is... and then if you try to rewind it before gameOver is true, you get the cheater message. Just took me a second...
Rewind Button
Hi,
I'm a newbie to Actionscript and am trying to get my rewind button to work properly. i am using Flash 7 and would like for my rewind to rewind continually until the button is released. I have added some code that will allow me to backup up frame by frame each time I click the rewind button but I cannot get it to just rewind automatically. Anyone know how to do this? Here's the code I'm using:
on(press){
_root.prevFrame();
}
on(release){
_root.stop();
}
Rewind Button AS3
Hi all
First off, I´m fairly new to Actionscript, but I understand the basics.
What I´m trying to do is to create buttons that acts like the buttons on http://www.newstoday.com/
However, they are activated from an external swf, but I would like to have them static on my timeline.
The code I have so far is something in the ways like this.
stop();
hitArea.buttonMode = true;
var hrewind:Boolean = false;
hitArea.addEventListener(Event.ENTER_FRAME, rewindButton);
hitArea.addEventListener(MouseEvent.MOUSE_OVER, playButton);
hitArea.addEventListener(MouseEvent.MOUSE_OUT, startRewind);
function rewindButton(event:Event){
if(hrewind) prevFrame();
}
function playButton(event:MouseEvent){
hrewind = false;
gotoAndPlay("overMenu")
}
function startRewind(event:MouseEvent){
hrewind = true;
}
It works out okay, but when I add another button using the same script it rewinds all the way do the starting frame, resulting in making the first button rewind itself after the second button, as it rewinds back in the timeline.
Can someone help me get around this problem, or point me in the correct way if I have written something wrong in the code or misunderstood the whole concept of rewinding buttons.
Thanks in advance.
Rewind Button
can any one tell me wht is gonna be the script for scene rewind.
on (release) {
gotoAndstop(2);
}
whr do i put the secene info in the script?
Adding A Rewind Button
I was wondering what kind of action scripting is need to add a rewind function to my movie. Right now, I have a button and when it's pressed I do a "_root.prevFrame()" 20 times and then I do "_root.play()". So basically, I jump the movie back 20 frames.
What I want is something like holding down "Ctrl + <-" in projector. If I hold down Ctrl and the Left arrow, the movie rewinds at an accelerated rate. (Try it, you'll see what I mean.)
How would I put this feature in a button in my movie? I want to be able to hold the button down and watch the movie rewind in front of me.
I hope that was clear enough. Thanks in advance.
-Chris
Problem With Rewind Button
Here is another problem. By the way, thanks for everyone's help so far. When I eventually become a guru I promise I' ll give back to the forum's boards.
Thanks
If anyone can help I sure can use it...
I am trying to get an movie to play normally on a rollover and then backwards on rolloff. I have found two different tutorials on the subject here but I am still having the same problem with both. When you have several buttons next to each other using that command, the actionscript fails to work properly.
THe script is supposed to work when a user rolls over any of the menu buttons (resume, portfolio etc.) but when you roll over all of the buttons in the row the script seems to get confused and just stops. If it helps I will provide the fla. as well.
I need to knw how to get the script to not stop when uses roll over all of the buttons in the menu. Here is all of the info for the file.
Here is the code I am using for the buttons:
on (rollOver) {
_root.recordplayer.gotoAndPlay (Number(_currentframe)+1);
_root.rewind.gotoAndStop (1);
}
on (rollOut) {
_root.rewind.gotoAndPlay (2);
}
The is the clip actions controlling the function:
tellTarget ("_root.recordplayer") {
gotoAndStop (_currentframe-1);
}
Here is the url for my web site:
http://www.rfcreative.net
Forward And Rewind Button?
I need to create a forward and rewind button for a video clip. I also have sound with those video! They are in the library and I use the attachSound method!!! I would like to see a tutorail for that! I found one in the tutorial section, but it's 3 years old....It didn't work with MX!!!!
Thanks
Rewind Animation In Button
Hello Everyone,
I'm a Flash newbie and my problem is the following.I want to create a button that consists of two parts.The background (a square) and an icon in the middle of the square.I want on mouse over (in the square) to rotate the icon by 360 degrees in the y axis.So far so good. My problem is that i want on mouse out to rewind and bring the icon back to its initial state.How can i do that?
Help In Forward And Rewind Button
hi all, i have a forward and rewind buttons which i created. but i duno how to put the actionscript codes for them to allow my swf to forward n rewind respectively upon clicking the buttons. need help here asap..thanks..
Exit & Rewind Button
Hi i know this is really simple but how do i create an exit button and a movie resart button.
This is my attempt at an exit button:
Exit.onRelease = function(){
fscommand ("quit","");
};
FLV Player Rewind Button
I'm really new on this action scripting stuff and I'm having a hard time getting the rewind button to work on the FLV Player I'm building for my class.
I have the following code for my rewind button and it scrubs through my flv just fine but I can't seem to modify it to use on my rewind button.
function seekVideo():Void {
nsVideo.seek(nsVideo.time+1);
}
var seekVideoInt
this.onPress = function ():Void {
seekVideoInt = setInterval(seekVideo, 100);
};
this.onRelease = function ():Void {
clearInterval(seekVideoInt);
};
Button To Make Mc Rewind
I am really new to all this action script and understand a very very very basic AS what I am trying to do is I have a simple slide show of photos with a back and forward button.
The script is
stop();
var back_btn:Button
var fwd_btn:Button
fwd_btn.onRelease=function () {
gotoAndPlay("f2")
}
back_btn.onRelease=function () {
gotoAndPlay("start")
}
But instead of it jumping back and then playing forward i would really like it to just play backwards.
If anyone can help it would be greatly appreciated.
I have had a look at other post and it just confuses me.
FVL Component Rewind Button
I'm working on a project that has a streaming FLV file as well as timeline animations. I've worked the playback controls so that they control both the timeline and the FLV. My only issue is that if they are paused and the user hits the rewind button, the timeline animations will go back to the second frame and play, but the FLV will stay paused.
I used the rewind button from the components library and used the following code to have it also control the timeline:
rewind_btn.addEventListener(MouseEvent.CLICK, rewindMovie);
function rewindMovie(event:MouseEvent):void
{
this.gotoAndPlay(2);
}
How can I change the component so that it rewinds and plays the FLV from a paused state?
Rewind Button Animation?
Hi,
i need to no if this effect can be done ive searched on the forum but still cant find what i need..
basically what i want to happen is, when you roleOut of the button is starts to play the movie from the frame its was at but backwards and when you roleOver again it stops playing backwards and plays normally at the frame it was on when the rollOver occured (well i think that is how it works)
a perfect example of this work is http://www.techspace.com/
i inclose a FLA to help!!
Rewind The Timeline With A Button
Hi All,
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?
thanks for any help....
below is a link to my file.
http://homepage.mac.com/graphicmuse/POO-CARD.zip
Rewind 5 Frames Button
Hi,
how can i make a i rewind button and return just 5 frames?
i try this:
Quote:
on(release){
_root.gotoAndPlay(_root._currentframe - 9);
}
but i try rewind animation, like prevFrame().
No Rewind When The UP Button Is Pressed
Hi!
I don't know how to change this code so that the movieclip doesn't scroll upwards in rewind style when the Up button is pressed. I'd like that the Up button acts like the Down button, so that when it is pressed it scrolls bit for bit and doesn't rewind the whole movieclip. Anyone that can help me out on this one?
Code:
scrolling = function () {
var scrollHeight:Number = scrollbg._height;
var contentHeight:Number = contentMain._height;
var draggerHeight:Number = dragger._height;
var maskHeight:Number = maskedView._height;
//
var initPosition:Number = dragger._y=scrollbg._y;var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
//
var left:Number = scrollbg._x;
var top:Number = scrollbg._y;
var right:Number = scrollbg._x;
var bottom:Number = scrollbg._height-draggerHeight+scrollbg._y;
//
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-draggerHeight);
//
dragger.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
dragger.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y + speed < maskedView._y) {
trace(dragger._y + " " + top);
if (dragger._y <= top) {
dragger._y = top;
contentMain._y += speed;
} else {
contentMain._y += speed;
dragger._y -= speed / moveVal;
}
} else {
dragger._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onMouseOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y - speed >finalContentPos) {
if (dragger._y>=bottom) {
contentMain._y -= speed;
dragger._y = bottom;
} else {
contentMain._y -= speed;
dragger._y += speed/moveVal;
}
} else {
dragger._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
};
scrolling();
Best regards
JoakimN
Rewind Button Animation?
Hi,
i need to no if this effect can be done ive searched on the forum but still cant find what i need..
basically what i want to happen is, when you roleOut of the button is starts to play the movie from the frame its was at but backwards and when you roleOver again it stops playing backwards and plays normally at the frame it was on when the rollOver occured (well i think that is how it works)
a perfect example of this work is http://www.techspace.com/
i inclose a FLA to help!!
FLV Rewind & Fastforward Button.
I need some help. I am trying to create a button that when pressed and held down rewinds or fast forwards a video that is playing in the flv playback component. Any help would be great. Thanks everyone before hand.
Rewind Button For Video
Last edited by N1K : 2004-03-25 at 08:10.
ok so each button controls the video_mode string and onEnterFrame I have a switch that checks what video_mode is and the proper operation is done to the video..
note: video_ns is the instance name of my MediaDisplay on the stage (which streams "somevideo.flv").
Code:
var video_mode:String = "normal";
fastforward_btn.onPress = function() {
video_mode = "fastforward";
}
fastforward_btn.onRelease = function() {
video_mode = "normal";
}
rewind_btn.onPress = function() {
video_mode = "rewind";
}
rewind_btn.onRelease = function() {
video_mode = "normal";
}
switch(video_mode) {
case "normal":
//do nothing
break;
case "rewind":
video_ns.playheadTime -= 1;
break;
case "fastforward":
video_ns.playheadTime += 0.001;
break;
default:
trace("invalid video_mode");
break;
}
My fastforward works perfectly fine, but my rewind seems to get stuck on certain times in the "timeline", and I know it's not the fact that I'm streaming because if I set my playheadTime to 0 it works fine. So if anyone could help, it would be much appreciated.
Mc W/ Button Rewind Solution Needed
I have a movieClip with 15 frames and a button to control it,
here is what i'm trying to achieve:
"here are my proposed button actions"
rollOver = play frames 1 - 10
rollOut = play frames 1 - 10 (reversed)
press = play frames 11 - 15
release = play frames 11 - 15 (reversed)
//button actionscript
on (rollOver) {
_root.direction = "forwards";
}
on (rollOut) {
_root.direction = "backwards";
}
//movieClip actionscript
//this will also be set to mouse._x & ._y coords
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.direction == "forwards") {
this.gotoAndStop (this._currentframe + 1);
}
if (_root.direction == "backwards") {
this.gotoAndStop (this._currentframe - 1);
}
}
This code works great for the rollover & rollout, however,
i've added 5 more frames to my movieClip,
and i dont want them to play until a button
action "press" occurs. Then i want to rewind only these 5
when the action "release" occurs.
any solutions please
tia
leon
Rewind Movie Clip Without Button
I need to figure out how to have a movie clip play in a current scene then rewind the clip after it plays.
www.michaelmartinho.com/FLUXAR
the image and thing that animates in needs to animate out..movie clip to play and then rewind back to frame one WITHOUT BUTTON!
if you could help that would be AWESOME
Thanks.
Forward / Rewind Button Problem
Hey
I have an issue with a flash file(see attached), which is supposed to be a template for rotating an image sequence for product display.
I found a piece of code in the forum, that worked perfectly for mouse dragging the object around, but I really wish to have some buttons for turning it and eventually zooming as well.
I tried a few different versions of forward/rewind buttons, but it seems that when I attach the actions, it screws up the action attached to the "photos" layer.
Any help would be very much appreciated!
Counter For Fastforward And Rewind Button
Hi guys,
firstly, this is my first post and i'm a total newbie in flash..pardon me
ok here goes...
i wanna create a fast forward and a rewind button for flash..
when i click on the fast forward button it goes to the next .swf file i wanna load..
for example my movie started at 1.swf when i click my play button and when i click the fast forward button it will go to 2.swf...
and for the rewind button when i am at 2.swf and when clicked it will go to 1.swf...
i was told i need a counter for this and do a Counter N den loadMovie(N+1.swf,screen) sort of logic for these buttons..
can anyone kindly help me please?
Thanks A MILLION!
Alvin
[as 2] Problem: Rewind Button For Video (locks Ont
ok so each button controls the video_mode string and onEnterFrame I have a switch that checks what video_mode is and the proper operation is done to the video..
note: video_ns is the instance name of my MediaDisplay on the stage (which streams "somevideo.flv").
Code:
var video_mode:String = "normal";
fastforward_btn.onPress = function() {
video_mode = "fastforward";
}
fastforward_btn.onRelease = function() {
video_mode = "normal";
}
rewind_btn.onPress = function() {
video_mode = "rewind";
}
rewind_btn.onRelease = function() {
video_mode = "normal";
}
switch(video_mode) {
case "normal":
//do nothing
break;
case "rewind":
video_ns.playheadTime -= 1;
break;
case "fastforward":
video_ns.playheadTime += 0.001;
break;
default:
trace("invalid video_mode");
break;
}
My fastforward works perfectly fine, but my rewind seems to get stuck on certain times in the "timeline", and I know it's not the fact that I'm streaming because if I set my playheadTime to 0 it works fine. So if anyone could help, it would be much appreciated.
Fast Forward / Rewind Button Problem
Hi there,
I'm creating a movie to demonstrate features of a piece of software. I want the user to have movie controls at the bottem of the page. Play, stop and pause all work fine.
I've put the movie control buttons in a movie clip and the problem buttons have the folowing actionscript
fast forward:
_parent.gotoAndPlay(_parent._currentframe+3);
rewind:
_parent.gotoAndPlay(_parent._currentframe-5);
The problem is that by skipping frames the movie will often miss keyframes with actions in the timeline.
For example: I have a movieclip called "captions". At certain points on the timeline i have keyframes with actionscript telling captions to fade in, fade out or display certain text. If these keyframes are missed then captions displays incorrectly and the fast forwarded version of the movie is not accurate.
Is there a better way of implementing these buttons or a way to get round this problem?
I can see that if i took the different caption states out of the movieclip and put them on the main timeline then it would work - but this would make my movie much harder to edit.
Any suggestions will be gratefully recieved
Buttons - Making A Button Rewind To It's Original State
Hi guys.
Ok, I know how to make a static buton, and I know how to substitute in animations for, say, the 'over' state of the button, so that when you mouseover, the button animates.
The only problem with this technique is that, if you roll off the button, it switches back to it's "up" state.
What I want the button to do is rewind to it's original state when you roll off the button, even if it's only half way through the 'over' animation when you roll off.
Here is an example of a tutorial for a button that works in the way I'm talking about:
http://www.toxiclab.org/tutorial.asp?ID=69
That will let you see what I mean, however that button just seems like a *really* roundabout way of doing things, I mean he's creating an invisible layer as a button on top of a movie clip.
Surely there must be a simpler way?
Making A Rewind Button 1 Level Down From The Root Work For A Movie Clip
Hi there. I'm a relative newcomer to the wonderful world of actionscripting, and I can't seem to find an answer to this problem by searching for it on the Web. I have a movie that contains two clips: one is a controller movie clip, "reverse", located on the first level, that has 3 frames - the actions stop(); on the first, _root["artworks"].prevFrame(); on the second, and gotoAndPlay(2); on the third. What this is intended to do is play the movie clip "artworks" backwards until a stop(); command is reached in that clip. The clip "artworks" is also located on the first level, and has a button that, when pressed, says: on (release) {_root["reverse"].gotoAndPlay(2); } - this is intended to cause the clip "reverse" to go to the second frame, which should make the clip "artworks" play in reverse. Of course, this isn't working out like I expected it to - it isn't working at all. When the button is pressed, nothing happens. I hope someone out there can let me know what I'm doing wrong, and hopefully what I can do to fix things. Thanks in advance.
Can A Button Make A MC "rewind"?
Ok, I have a portfolio page. On this portfolio page is, say, 9 pieces of work. On the stage there are 2 MC. One movie clip has the descriptions of the work, and the other has screen shots of the work. I also have two scroll buttons, one for "next", and one for "prev". I want, when the user clicks the "next" button, for both MC to play. (the MC's have stop actions in between each piece of work). That's the easy part. But, when they click "prev", I want the movie clips to "rewind", so that the tweening would reverse, instead of just going to a frame and stopping. Can this be done? If not, how do I make the "prev" button say: "when clicked, make "screenshots" MC go back ten frames and play". This way when they clicked "prev", it would just play the previous tweening. ( I would prefer the rewind method though)
Thanks!
Rewind
I read the "building a rewind engine" tutorial, but it is for Flash 4, and the code doesn't translate properly. Does anyone know the Flash 5 method? thanks! -Fred
Rewind
Hi I have a move and wish to once a button is clicked once play a section backwards to a point where it will stop ( using the stop command) I have read the tutorial on this site but it is not very useful could anyone help me. Thanks for reading and any help you give me
Yours faithfully
Sam
Rewind?
How do you rewind an animation back to frame 1 when the user clicks a button?
Rewind
I need a basic actionscript for a rewind button, but i can only find ones for mc's which are gotoandstop commands.
The thing is i want to rewind my clip on mouseover frame by frame, like prevframe, but i want it to stream (i.e. be smooth)/ maybe theres some kinda prevframe loop?
thank you!
Rewind Mc
heres the mc www25.brinkster.com/tilly001/index
when you close the map I want to rewind play to the firs frame where the buttons are. I thought of duplicating the frames in reverse but just to rewind would be easier.
please could you help me as im not sure how to do this.
Rewind
I'm trying to figure out if there is any easy way to create a rewind button in a movie that you can hold down, or press once and will effectively play the movie backwards untill the button is realeased or another one is pressed. Can anyone offer any help?
Cheers, Keef
Rewind
hello you fantastic people out there.. .
please could someone help? i have built a movie that builds a complex animation. what i want to happen is when i click on button a within the moview it plays the animation build backwards and then goes to page a, or when i press button b, the movie plays backwards and goes to page b.. .
hope i have explainied this well enough...
many thanks in advance
tasvin
Rewind Please....
I know it's possible to have a MC clip play backwards, but is it possible to do this in your main movie timeline? FLASH MX.
Rewind Help
I have two buttonS on a movie clip.
On rollover one button plays the mc and stops on rollout.
I want the other button on rollover to rewind and stop on rollout.
Can anybody help me please.
Rewind
how do i get a movie clip to play forwards then backwards and then just carry on bouncing between the first along to the last frame and then back again....
I know its probably obvious but i am a newbie
Rewind
Is there an actionscript code that rewinds back to like 10 or 5 frames? Can someone please tell me it please
How Do I Rewind My FLV?
I have an flv on the stage...with an instance name. How do I tell it to rewind.
This is the code I'm using to tell it to pause. Which is simple.
on (release) {my_flv.pause();
}
Why is making it rewind seem so much more difficult? Can you help me with the code it would take to do that?
Thanks.
Rewind
I'm certain this has been posted a number of times before, and I thusly apologize for not searching - but time is of the upmost importance. This has to be working by 8am tomorrow morning or my head will roll. Thanks whipsers and viknight for your help on this.
The good news is, I went back to basics and have everything working except the menus scrolling back up when you leave them!! This is exciting, especially since I now understand the constructs that make all this happen the way it does.
All I need now is to make the menus roll back up. Anybody have a clean idea or two on how I can make this happen. FLA is available here: http://www.d-w-t.com/pom_menu.fla
I've saved it to mx 2004 format, but I'm using flash8 w/ actionscript 2
Again, I apologize for not seraching old posts, but I'm too short on time for that sort of goose chase.
Thanks!
Rewind
Folks...
How do you rewind a function to the begining after it ends using
the tween classes. I created a screen savor that needs to run, rewind from the beginning, then run again, and so fourth.
thx.
|