Simple Forward And Reverse MC Buttons
I would like to make a very simple slider effect.
I have a movie clip with several images on it and I want two buttons to control movement left and right. (Or in this case forward and backwards.)
When you click the right button I want the move clip to play forwards and when you click the left button I want the movie clip to play backwards.
Is this possible?
Could someoone plese help me this action script.
Thanks
Gee
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-20-2002, 03:05 AM
View Complete Forum Thread with Replies
Sponsored Links:
Playing Music Via "stop - Play - Reverse - Forward Buttons"
Hello everyone,
I am working on a media player, and have received help from a member on here with how to set it up to have files play via clicking on a button in the flash file.
The problem I am having now is that I need to have the "stop" - "play" - "reverse" - "forward" buttons all work for each file that is currently playing. There is 4 audio files that can be clicked and played, but I am stuck on how to get the stop/play/fwd/rev buttons to work for each file as they are playing in the media player.
Here is the actionscript for the file.
Code:
play_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
my_media2_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
my-media3_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
mymedia_ap_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
I am sorry if this is such a newbie question, but I am taking everything I learn and applying it to projects and hoping that I can soon be able to give advice to others on this board.
Thanks in advance to anyone who can give me some insight.
Thanks.
- Robert DeVore
Cre8tiv Vision co-CEO / Lead Designer
View Replies !
View Related
Back/Forward Buttons On Simple Gallery
Hello, thanks for clickin over.
I have a simple gallery here, popup on click buttons with simple transitions. Now im trying to add a forward/back option to the movie without any luck. The image loads out of _root but the button is in the window movie. So im attempting to use if statements to tell which image to jump to next.
I have linked the file for reference.
http://www.snyx.com/gally.zip
View Replies !
View Related
Help Adding Forward/back Buttons To A Simple Flash Gallery
Hello, thanks for clickin over.
I have a simple gallery here, popup on click buttons with simple transitions. Now im trying to add a forward/back option to the movie without any luck. The image loads out of _root but the button is in the window movie. So im attempting to use if statements to tell which image to jump to next.
I have linked the file for reference.
http://www.snyx.com/gally.zip
View Replies !
View Related
Going Forward... In Reverse
Greetings,
This is my first post so pardon the ignorance...
I've seen this posted all over the place but nothing seems to work. I need to have a BUTTON play a segment of time in REVERSE.
(more specifically) i have 6 pictures i want to be able to scroll from right to left when the forward button is pressed and from left to right when the reverse button is pressed.
My forward button goes 4 frames and stops on the 1st frame of the next picture tween. This looks and works great. My back button goes back 4 frames to the previous picture but it does it INSTANTANEOUSLY. I would like the reverse motion to be the same rate at the forward motion.
Any ideas?
View Replies !
View Related
Forward And Reverse Play
I have a timeline with six images which have the effect of travelling in a loop from foreground and then into the distance. I want to have 2 buttons one for forward movement and one for reverse movement. I would like to use an on roll over event to trigger this movement. "Next frame" and "play" works fine in the forward direction. However, "previous frame" stops after only one frame and has to be "roll out" "roll over" repeatedly to make it move backwards. Is it possible to get a timeline to play backwards with actionscript or is it necessary to duplicate the timeline and reverse the frame order, jumping between the two.
If it isn't possible I think it would be a welcome addition to future flash releases.
Thanks for you wisdom.
Manson
View Replies !
View Related
Forward And Reverse Controll HELP
Hello, thanks ahead for all the help. What I’m trying to accomplish here is control of a movie clip. Take a look at www.kingsasylum.com , do you notice that scroll menu on the bottom left. What I would like to see is when you press a link on the menu to the right, on release the scroll box will either scroll forward or backwards depending on what link is pressed, and stop appropriately. Thanks guys! Flashkit rocks!
View Replies !
View Related
Forward/Reverse Control
OK I have two sites in which I need to do this:
Site #1
I have a flash file that has an arrow pointing left and an arrow pointing right. I need them to control a MC so that if you mouse over the left arrow it plays the MC backwards and it stops when you mouse out. I also need it to play forward when you mouse over the right arrow and also stop when you mouse out.
Site #2
I need to do the same thing only with a slider rather than arrows. This will go frame by frame stopping each time the slider is drag in whichever direction.
If someone could help me with this it would be greatly appreciated!
-= Bill =-
View Replies !
View Related
[F8] Fast Forward And Reverse
I am using this code for my ff and rev buttons. I don't like them but its all I have for now. I know there is a better way. If I press the ff button the video needs to advance by 1-2 seconds. If the user press the revers button it need to do the same but move back 1-2 seconds. I am using the FLVPlayer Component so doing ns.seek will not work.
my current code
Code:
//Rewind
rewind_btn.onRelease = function (){
myPlayer.playheadTime = 0;
}
//Forward
forward_btn.onPress = function (){
myPlayer.playheadTime = myPlayer.totalTime-1; }
any help would be appreciated
View Replies !
View Related
Forward And Reverse Timeline?
Hey im using flash CS3 with actionscript 2.0. what i want to create is a column for an online magazine, the column will display a list of content, this list will be longer than it appears and have a "next" and "prev" buttons located at the bottom. i can set it up so than when next is clicked the content shifts and displays more, the problem is, what do i do about the "prev" button? i cant make the timeline play in reverse can i? i have a test FLA at www.waffleconezone.com/test.html ..
thanks!
View Replies !
View Related
Forward Reverse Effect
i have a video in the center of my project, at the bottom are 2 bottons (forward and reverse)
when you roll over the 'forward' button i want to play the video one frame at a time forwards, and vice versa for the reverse. could someone help me with the code please.
thank you.
View Replies !
View Related
Forward Reverse Effect
i have a video in the center of my project, at the bottom are 2 bottons (forward and reverse)
when you roll over the 'forward' button i want to play the video one frame at a time forwards, and vice versa for the reverse. could someone help me with the code please.
thank you.
View Replies !
View Related
Flash Player 9 - Forward, Reverse Using Keyboard
Okay, this question is just about Flash Player 9, and not any programming or anything. It seems to me that I recall previous versions would allow you to advance one frame, or go back one frame. I remember watching a Jib-Jab animation and studying it by advancing a frame at a time, and I did it with the keyboard somehow. Flash player 9 will still do the single frame advance or retreat, using the right-click context menu. First right-click and uncheck "Play" then right-click, choose "Forward" or "Rewind" to go forward or back one frame at a time.
But like I said, I remember there being a keyboard equivalent to this. I don't remember what it was, but further research (google, ha.) seemed to indicate that it was the comma and period keys. However, I tried those, and a whole bunch of other keys, and nothing seems to work. Does anyone know what those keys are, or even if there is such a thing in Flash Player 9?
Thanks in advance (no pun intended).
View Replies !
View Related
Turntable Cube - Reverse And Forward Problem
Hello everyone
How can I fix this script.
I have a rendered 37 frames turntable cube movieclip. And two buttons. Scenario is like that; When we release the right button movie must play forward normally and stop at 14. and 32. frames. When we release the left button movie play backward and stop 14. and 32. frames again. And this behaviour must be endless (turntable) ( at 37. frame it must turn to first frame if released right button or at first frame it must turn to 37 if released left button).
I tried to write a script but movie couldn't stop at 14. and 32. frames or it's not turntable...
My script is in attachment.
Please help me..
View Replies !
View Related
Fast Forward, Rewind (reverse) Video
hi,
i have this video... approximately 60 second... i can make the video to play by using gotoandplay().. if i want to fast forward or rewind the video, how can it be done.
i don't want fast forward or rewind thru slider... i want it like FF or rewind like VHS tape. most likely involve buttons to enable it.
tq
View Replies !
View Related
Netstream / Seek() Fast Forward And Reverse
I am trying to use seek(); to fast forward and reverse my flv. It works if I keep clicking the button to skip the video forward, but how can I make it so I just have to hold down the button to repeats the ns.seek(ns.time + 1) ?
forwardButton.onPress = function() {
ns.seek(ns.time + 1)
}
reverseButton.onPress = function() {
ns.seek(ns.time - 1)
}
View Replies !
View Related
Play Animation Forward/reverse Between Specified Frames?
Hi!
I've just started out with Flash as I need to put together a front page menu for a website, which has a logo a little like a clock. The idea is that the 'minute hand' moves around to point at whichever option/button the user is hovering their pointer over....
... I've got a tweened animation of the 'minute hand' moving between all the options that it would have to move between, with a keyframe at each button that it would have to stop at if the user were hovering their mouse over it.
What I want it to do is move the 'hand' between buttons - maybe backwards, maybe forwards, maybe from frame 1 of the anim to the 30th, maybe from the 20th back to the 10th, depending on which button it is pointing to (the last button the mouse hovered over) and which button the user is now pointing at.
I'm hoping that there's some kind of variable that'll give me the current frame of the animation, and a command I can use to play from that frame to a desired frame (which I can execute from ActionScript attached to that relevant button) whether that be forwards or backwards.
Is this possible? If so, how? In theory it should be really simple to do, but I just can't seem to find the commands/access the anim's current frame value etc. I have experience of programming, but this is my first time with ActionScript/Flash!
ANY help appreciated!!
View Replies !
View Related
Play Forward/reverse & Stop - Newb Question
Hi All,
First of all, great site. Lots of helpfull people on here.
I wonder if any anyone can help me. I am trying to create a menu that scrolls across the page, using a mask layer so only one heading at a time is visble. There are two buttons that control the scrolling of the menu left and right. At first i had a problem with the reversing of the Menu MC but solved that by searching this site.
The MC is 7 seperate headings. The idea is that once you hit the fordward/reverse buttons it scrolls to the next heading and stops. Sadly all i get after hitting the buttons is all 7 headings scroll past until the end (or start!) of the MC. I need to beable to get the heading to stop at the correct position until one of the directional buttons are hit again. Any ideas because i'm totally stuck!
I'm using Flash MX. I really am a numpty when it comes to AS so be gentle! And thanks to anyone that takes time out to check out this post.
This is the AS for the MC itself:
onClipEvent (load) {
stop();
var speed = 1;
var direction;
}
onClipEvent (enterFrame) {
if (direction == "ff") {
gotoAndStop(_currentframe+speed);
} else if (direction == "rr") {
gotoAndStop(_currentframe-speed);
}
}
And the forward button:
on (release) {
_root.MenuMC.direction = "ff";
}
And the back/reverse button:
on (release) {
_root.MenuMC.direction = "rr";
}
Cheers again!
Markio.
View Replies !
View Related
Several Questions - Delay, Swap Depth, And Forward/Reverse Button
I got several questions, so instead of posting 3 seperate posts and taking up space I'll roll it all in one. Thanks in advance.
Delay
I have a slide show that plays, and it processes the do..while statement to quickly causing flash to crash. All I need is a simple delay. I've noticed setTimeout, but I really don't understand how to use it. Anyone know where to get some documentation on it?
Swap Depth
The slide show I have can also be played 1 frame at a time. I want the picture to swap depths when the user hovers over. However, the slide show is within 2 loaded .swf files. How can I get it to swap depths with the _root or is this even possible?
Forward/Reverse
I have a .flv file and I can play and pause the file using custom buttons that I've made in my swf. How can I get forward/reverse functions?
View Replies !
View Related
Having Troubles Creating Reverse Play And Forward Play =/
So i have looked at a lot of posts tryna get insight on how to do this but so far nothing . . . . I have an animation that i created in after effects, nothing to hard, just some icons going around in circles. so far it just plays in a continuos loop clockwise. what i would like it to do is when i hover over the left side of the SWF it reverses and plays (counter clockwise), the more i move to the left the faster it plays. . . . if i move to the right it plays clockwise, the more i move to the right the faster it plays. . . If i center my mouse on the swf is slows to a stop and i can select the icons to load the menu item. probably an external swf loaded into the main swf. . . Can someone guide me? I'd greatly appreciate it. I uploaded my FLA so you can check it out if you'd like. again, thanks in advance for all your help!
joseph
http://architectproductions.com/projects/draft2.fla
View Replies !
View Related
How To: Simple Frame Back And Forward?
Hey All,
Im trying to make buttons to advance a frame and retract a frame.
So I have this for the forward button...
Code:
on(release){
play();
}
with a stop(); on each frame.
But is there a way to play in reverse?
Any help is appreciated.
Thanks,
Limitlis
View Replies !
View Related
Simple Straight Forward Tutorials
I am looking for a reasonable, straight forward tutorial on actionscript. I am pretty familiar with HTML, and JavaScript is less and less scary but I can't seem to wrap my head around using actionscript for anything other than creating a link between pages.
Also, let's suppose someone wanted to take some college courses to become a decent freelance web designer. I've been learning slowly by immersing myself in it, but somethings are completely foreign i.e. php, c++, JavaScript. Actual applying anything I know is difficult because I am missing huge chunks of info.
You can see some of my "work" below. Be kind.
http://www.icedoutgear.com
View Replies !
View Related
How To: Simple Frame Back And Forward?
Hey All,
Im trying to make buttons to advance a frame and retract a frame.
So I have this for the forward button...
Code:
on(release){
play();
}
with a stop(); on each frame.
But is there a way to play in reverse?
Any help is appreciated.
Thanks,
Limitlis
View Replies !
View Related
Forward And Back Buttons ?
Hi,
i've created a number of flash movies using Flash 5.
I've included the first flash movie in a HTML page and put it at:
http://www.itsasix.com
when a user clicks on a button on the main flash movie, it will load another movie in its place.. the code i've used in ActionScript to do this is like:
on (release) {
loadMovieNum ("teams.swf", 0);
}
So the user, may navigate through my many flash movies by clicking on the various navigation options (e.g. Team, Events, FAQ, etc).
But... how come I cannot use the forward and back buttons to go back to the last flash movie that was loaded? Instead it goes back to the last HTML website I viewed!
Also, i've made a number of flash movies instead of just BIG one is because it's easy to manage the .fla and it'll load quicker for the user. This is normal, yes?
Hope this makes sense! and Thanks for looking,
Shams
View Replies !
View Related
Forward And Rewind Buttons
OK. I have spent the last 12 hours doing extensive research on numerous sites for an answer to this, but maybe I have overlooked it. I have an MC on the main timeline. In this mc, I have inserted other mc's in each frame. (ie: frame 1 is mc1, frame 2 is mc2, etc...) What I want to do is have control buttons on the main timeline that control the nested mc's. Basically what I want is forward 1 frame, rewind 1 frame and rewind to beginning buttons. I have looked at Colin Moocks historyNav example, but I'm not sure if it will incorporate into my project.
Here's the layout. The user clicks a menu button. The menu button brings up a menu with multiple selections. The user clicks on a selection which causes the user to go to the appropriate frame in the mc on the main timeline containing the appropriate nested mc. The user should then be able to click a forward button to move them to the next frame in the main timeline MC, thus bringing up the next nested mc. **I pretty much have the forward button functioning by using:
on (release) {
ImagePHmc.gotoAndPlay(_currentframe + 1);
}
The user should also be able to click a back button to take them to the previous frame (previous nested mc), or click a full rewind button that will take them back to the second frame of the main timeline mc (the first frame is blank), thus showing the first nested mc. These are the buttons I am having problems with.
Am I doing this all wrong? Can it be done this way? If anyone has any suggestions, I am open to them.
View Replies !
View Related
Back / Forward Nav Buttons
hi there
i have a flash file that has seven sections which can be navigated through via the actual flash file nav, upon clicking the nav it jumps to another place on the main timeline! i would like to know if its possible to also use the browser forward and back buttons to navigate as well.. . can this be done?
many thanks
View Replies !
View Related
Back And Forward Buttons - Help
Hi,
What I am trying to do is to make a flash 5 movie, to be controlled by two buttons. Just like on internet explorer where you can click backwards and forwards. So my page is like a screen with all the text on and when you want to go to the next page, the movie plays the next motion tween, bringing up the next page of text and stopping. And if you want to go back it would just go to the previous 10 frames and bring up the previous page.
This is what I tried using for the backwards button:
on (release) {
ifFrameLoaded (60) {
}
gotoAndPlay (40);
}
on (release) {
ifFrameLoaded (40) {
gotoAndPlay (20);
}
}
And for the forward button I used this which kind of works, very badly hehe: on (release) {
play ();
}
The movie has the stops already in it, so that kind of works...
Anyway, I really need some help, all would be greatly appreciated!
Cheers
Kev
View Replies !
View Related
Previous And Forward Buttons
i created a movie in that i placed 4 slides in a layer1 in frame 5,25,45,65,85.
i had created a movieclip a rectangle in shape whish is static in a layer2
on rollover the movieclip rectangle i placed 2 buttons one is "previous" button and another is "forward" button.
on running this i want the button operations like the following
1. on clicking the "forward" button the the movie have to go to the slide 25.
2. from there if we click the "forward" button it should go to 45and so on.
like this
1. on clicking the "previous" button from the frame 45 it should go to the 25 frame of the movie and so on.
every thing is working but what the code i write in the button which is in the (rectangle shape)movie has taking the only one action. ie., when i write on(release){ _root.gotoandplay("25")}
it is globel to all position on the button.
so only this action can only is taking place.
so i want the action script to be global and as well as my above constrains should also satisfied.
for this what to do
pls help me out
note: if u give ur personal id i can send the fla file to u(which i a had this problem) since the file i zip is big to attach here i asking ur personal mail id to send the fla.
from
aristotle
note: if u give ur personal id i can send the fla file to u(which i a had this problem) since the file i zip is big to attach here i asking ur personal mail id to send the fla.
View Replies !
View Related
Back And Forward Buttons?
Is there anyway to make the browsers back and forward buttons work within a flash movie? I'm thinking something with a variable being set every time you enter a new page and then when the user hit's the back button you could use that variable to enter the previous page?
Is something like that even possible????
Thanks
View Replies !
View Related
Forward/back Buttons?
hi, i'm trying to create forward and back buttons in my flash site... i found this code in a tutorial and added it to the back button, but it doesn't work. ...i just want the button to take the user to the previous page they visited on my site.
on(press, release){
getURL("javascript:history.go(-1)");
}
do i need to put some java in the index.html file for this to work? my whole site is in one .swf file which i inserted into a blank page in dreamweaver.
thanx,
kira
View Replies !
View Related
Back/forward Buttons In Swf ...........
Hey guys...
I've just finished coding a flash movie with some browser like back & forward buttons.
Just one problem I can't solve..... Like a browser I want my buttons to be grey-out and inactive when there is nowhere to go back or forward too.
How could I code this ??
View Replies !
View Related
Forward/Back Buttons
I need help making forward and back buttons work for a movie clip. I've looked at some "currentFrame" scripting but I have no clue how to make it work. I am a graphic designer so you're going to have to walk me through it step-by-step. The first clip I am creating has 5 pages.
View Replies !
View Related
Forward And Back Buttons
I've got a situation where .swfs are loaded by buttons from another .swf to a higher level. each button loads its own external movie. What I would like to know is how to load these external .swfs in succession, either forward or backwards, with forward and back buttons, as well as keeping the specific buttons in effect.
I guess it would be kinda like the way you search through the forums. You can either click the number that corresponds to the next page, like "2" for example, or you can click the forward button that looks like ">". Same for the back situation. So it would look something like this: "<12345>". You could either click the ">" button to move all the way to 5, or click each number separately.
I'm only a beginner with actionscript, so I have no idea what to even search for... is this controlled by an array, or some type of variable thing?
Help!
View Replies !
View Related
Forward And Back Buttons
Hi,
I know this should be quite easy. I'm redoing my portfolio and just want back and foward buttons, so user can click through my portfolio.
Just want a simple script.
Any help appreciated!
thanks
View Replies !
View Related
Forward And Back Buttons
Im creating a presentation with a content window thatll have scrolling text on one side a small navigatable map at the top..and on the rt side id like to have a couple buttons thatll let them click through some pics. Whats the best way to do a 'next' and 'previous' button?
View Replies !
View Related
Forward And Previous Buttons
i created a movie in that i placed 4 slides in a layer1 in frame 5,25,45,65,85.
i had created a movieclip a rectangle in shape whish is static in a layer2
on rollover the movieclip rectangle i placed 2 buttons one is "previous" button and another is "forward" button.
on running this i want the button operations like the following
1. on clicking the "forward" button the the movie have to go to the slide 25.
2. from there if we click the "forward" button it should go to 45and so on.
like this
1. on clicking the "previous" button from the frame 45 it should go to the 25 frame of the movie and so on.
every thing is working but what the code i write in the button which is in the (rectangle shape)movie has taking the only one action. ie., when i write on(release){ _root.gotoandplay("25")}
it is globel to all position on the button.
so only this action can only is taking place.
so i want the action script to be global and as well as my above constrains should also satisfied.
for this what to do
pls help me out
from
aristotle
View Replies !
View Related
Back And Forward Buttons
Hi! guys
Do you know of any codes or scripts that will prevent the back and forward button of a browser to kick you out of the site? (in Flash)
I know the easy way is to open another window from an Enter button, and I also tried one of those scripts posted earlier and also in MX those Anchor stuff that don't work.
If you have any idea please let me know.
I will not go to sleep until someone give me an answer.
Thanks
View Replies !
View Related
Forward And Back Buttons
I've got a situation where .swfs are loaded by buttons from another .swf to a higher level. each button loads its own external movie. What I would like to know is how to load these external .swfs in succession, either forward or backwards, with forward and back buttons, as well as keeping the specific buttons in effect.
I guess it would be kinda like the way you search through the forums. You can either click the number that corresponds to the next page, like "2" for example, or you can click the forward button that looks like ">". Same for the back situation. So it would look something like this: "<12345>". You could either click the ">" button to move all the way to 5, or click each number separately.
I'm only a beginner with actionscript, so I have no idea what to even search for... is this controlled by an array, or some type of variable thing?
Help!
View Replies !
View Related
Forward And Back Buttons
Hi,
I know this should be quite easy. I'm redoing my portfolio and just want back and foward buttons, so user can click through my portfolio.
Just want a simple script.
Any help appreciated!
thanks
View Replies !
View Related
Back And Forward Buttons
I havent been able to find this in the forums yet and I havent seen a tutorial on this either....
Is there a way to use the "back" and "forward" buttons of the internet browser to navigate back and forth between the visited sections on a flash site? I could have sworn I saw a few sites that did it.
Spanks.
View Replies !
View Related
Browser Forward / Back Buttons
Disclaimer:
This is just me thinking out loud, and looking for feedback to se how/if it could be done.
Ok:
I have been reading a lot of anti-flash usability articles lately. Some (most?) seem pretty right on.. but they seem like things that Flash designers could work-around... actually use Flash as a tool to improve web usability.
One such issue is the usage of the browser's forward / back buttons. Here is my idea on how to get them to work with an all Flash site.
If the site was structured so that it was two frames - one would contain the Flash movie and would take up all but one pixel of the screen. The second frame (the "invisible" one) would load a new HTML page when a button in Flash is clicked and then use SetVariable to change a variable that Flash movie (seperate frame) would use to tell it what page to go to. If a visitor clicked the "back" button on their browser, the small frame would change (right?) which would load the last html file in there, telling the Flash movie to go back to the scene/frame that it had been on... The flash movie wouldnt work outside of the frames, since it is depending on the variable from JavaScript, but in theory, this would work... of course Im probably forgetting something or overlooking something because otherwise this would seem like a pretty easy usability work-around for a Flash site, and I havent seen it done (to my knowledge).
Any thoughts? Ideas? Any JavaScript / Actionscript Guru want to give it a shot?
-Charles Hinshaw
View Replies !
View Related
Help With Back And Forward Buttons For Mp3 Player
I can't figure out how to code my back and forward buttons to go to the previous track or the next track based on them coming from a folder on my server using the load movie command to load them into the flash file. I've seen back and forward buttons used when the music file is located inside of the movie itself, but that's no way to work when you're transfering tons of data over the net. Any ideas on how to do this?
my music files are coming from:
http://www.arthurpardue.com/swf/anysong.swf
View Replies !
View Related
|