Back/forward Buttons
how would i make simple back and forward buttons(besides the ones in the browser)?
thanks
FlashKit > Flash Help > Flash MX
Posted on: 11-17-2002, 10:19 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
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
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
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
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
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 ??
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.
Back And Forward Buttons
is there a way to have a back button that goes back to the frame they just came from?
also it would be the same for the forward or next frame or key frame.
Thanks!
Aaron
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!
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
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?
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
Back And Forward Buttons
is there a way to have a back button that goes back to the frame they just came from?
also it would be the same for the forward or next frame or key frame.
Thanks!
Aaron
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!
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
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.
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
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
Back & Forward Buttons In Browser
Hi everyone!
I've been looking around the web for a way to get the forward and back buttons in the browser to work within the swf file. The code that people have provided seems to confounded. What I really want to know is how to listen for the back button press within something like an ASP page. Say within the ASP page I am using FlashVars to send a variable down to flash that tells it when the back or forward button was pressed. In flash, everytime I click on a link, it stores a section name in one of two arrays called backArray() and forwardArray(). Whenever those arrays have new information added to them, they are sent up to the ASP page and stored so that when the user tries to click the back button in the browser, it will reference the array. Here's a more thorough explaination.
ASP Page:
- Back button listener will make a decision...if there are no variables in the array 'backArray()', then it will go back to the previous page in the browser's history. However if there IS a variable in the array, it will delete that variable from the array, and then send that variable down to flash along with the most recent data from the array. So let's say the array had the variable data "portfolio". It would send the variable "portfolio" down to flash, delete the variable "portfolio" from the array, and then send the array down to flash.
Fla File:
So now in flash, the array 'backArray()' has zero data in it, and the timeline says - ok, the section is "portfolio", so now let's go to that section. On the ASP page, if the array 'backArray()' already has zero data in it, it will tell the browser to simply go back in the user's history.
So what I really need to know is - is there a way to have an event listener in ASP that knows when the back or forward button is clicked and override what normally happens?
Browser Forward And Back Buttons
Hi, this is probably simple, but I can't get the browsers forward and back buttons to work. Normally, no one really cares, but I have a customer that just absolutely has to have it. But the problem is different for each of the 2 browsers:
In IE - say you click a link that takes you to a frame at the end of the movie. You then have to click back and through all of the frames of the movie, not just back to the one you were on. Make sense?
In Firefox - they just plain don't work at all. No matter how many times I click through the site, when I hit back, it takes me right back to the previous website I was on.
the site is www.grandtourofhomes.org
I don't get it. I figure there has to be something I could do to make it work like it's supposed to. I've seen hundreds of sites that were made in flash and have working browser buttons. If you know, could you please help me out? If there is actionscript, do I put it on the buttons or the movie frame itself? Any help would be wonderful. I've been searching for months now and can't find anything online! Thanks.
[F8] Back And Forward Buttons In Flash
Ive Noticed that in flash websites you cant use the back button because its not HTML so im trying to make 1 in my flash but i dont know the code to go to the last frame you were at and perferablely a forward button aswell.
Thanks,
Tommy
Using The Browsers Forward And Back Buttons
Okay, so I found this tutorial on here http://actionscript.org/tutorials/in...sh/index.shtml but it didn't seem to work for me. Is there a different way to do this?
I'm looking for a way for users to be able to use the browsers forward and back buttons in a flash site. I made a site for a friend and he really wants it to work. I can't figure it out, I followed the tutorial word for word, but nothing happened. It didn't mess anything up, it just didn't do anything. Not sure what to do, but I'd really like to get this figured out. Let me know if there's a better way to do it. Thanks for the help!!
Forward/Back Buttons And Graying Out
I have forward and back buttons in a movie clip that I can attach to other MCs to move forward and back one frame at a time. I'd like to make it so that when the playhead is on the first or last frame the respective button is grayed out. I have an idea of how to accomplish this, I just don't know the syntax.
something like this on the back button:
if (_parent.currentFrame = firstFrame) {this.gotoAndStop ("grayedOut")}
what's the right syntax?
Thanks in advance.
Help With Array And Back/forward Buttons
I need some help...I'm relatively new at actionscripting and I'm trying to get this project to work...Loading mutliple swfs into an array and then cycling through them using the forward and back buttons....any help would be appreciated.
I've attached the main flash file and one of the several swfs.
Back And Forward Navigation Buttons
Hi,
I have created a Back button using array and the script below, which I got from net and is working nice.
----------------------------------------------------------------
1. In the first frame of the movie, initialize an array which will hold all the interesting frames that were visited:
navStack = [];
2. In each interesting frame, have a script add the current frame number to the list of interesting frames that were visited:
navStack.push(_currentFrame);
3. Attach the following script to the 'Back' button that sends the playback head past the most recent interesting frame to the previous interesting frame:
on (release) {
if (_root.navStack.length > 1) {
recentFrame = _root.navStack.pop();
previousFrame = _root.navStack.pop();
goToAndPlay(previousFrame);
}
}
-------------------------------------------------------------
My question is, similar way can we make a script for Forward button?
Please Help !
Regards,
Jains
Arrays And Forward/back Buttons
I really hope someone can help me with this - its my first attempt using arrays and its taken me two days to get to where I am but I just cant get the last bit right.
I'm trying to load movie clips using the attachMovie method and two buttons on stage - a forward and back button. The idea being that when the forward or back buttons are pressed the mc on the stage is replaced.
My code in the first frame is:
PHP Code:
quotes = new Array ("mc"1, "mc2", "mc3", "mc4");
i = 0;
holder.attachMovie (quotes[i], "nextone", 1);
My code for the second frame is:
PHP Code:
next.onPress = function() {
if (i<quotes.length-1){
++i;
}
if (i>0 && <quotes.length) {
holder.attachMovie (quotes[i], "nextb", 1);
}
};
previous.onPress = function() {
if (i >0) {
--i;
}
if (i<quotes.length) {
holder.attachMovie (quotes[i], "prev", 1);
}
};
My code for the third and last frame:
PHP Code:
gotoAndPlay (2);
It all works fine except for what that when the back and forward buttons are pressed while the first and last mcs are playing (respectively) they just reload again. I would like it to be clear to the user that these are the first and the last mc's by disabling (and making invisible) the back/forward buttons when the first/last mc is playing (or not so preferably loading a blank mc if the disable/invisble option isnt possible). I've tried writing the code to do this using the button object and remove clip command but I'm new to this type of actionscripting and seem to be going round in circles. Close to my wits end...please help!
Back/forward Buttons - 2advanced
Hello folks!
Does anybody know how to realise this thing like on new 2advances.com website?
when you press some buttons/links urls changes to site.com#section/subsection
? and then you can easily use back button or just give this address to someone else
help
Memory Forward/Back Buttons
I've created a Flash MX presentation that contains about 20 sections. each section is in its own movie clip. On the interface for this presentation I have a back and next button set. What I would like to do is set these buttons to interact wit the movie clips accordingly. For instance, if I'm on movie clip 7 of 20 and I want to go to the next movie clip (clip 8 of 20) and in reverse if I'm on clip 8 and want to go back to clip 7 etc..
Each clip has a loading bar of its own and will have to replace the previous clip that was loaded.
Thanks in advance!
Flash 5: Moving Back And Forward With Buttons
Hello there!
i am just learning actionscript and i have this problem: i want to present a portfolio with a number of jpgs. i have a button to click if you want to go on looking at the next picture and i have a button if you decide to look at the ones you have already seen, i.e. go backwards. but since i want to fade the pictures in and out, moving backwards poses a problem to me. how can i solve this?
thanx for the help!
*t_girl
Forward And Back Buttons On Main Timeline
I have a forward button and a back button on the main timeline.
I want the FORWARD BUTTON to jump 20 frames each time you press the FORWARD button, which needs to control the main timeline.
Also, I would you do this for a BACKWARD BUTTON?
Can some please help.
Thanks.
Flash Bookmarking (...not The Back / Forward Buttons)
After finishing a project for a band and after getting lots of feedback from users I’m really in need of a solution. The problem is with repeated users of the site. I would like users to be able to access (and bookmark) certain sections of the website without having to go through a main navigation page. This is really important for sections like tour dates and buying merchandise.
I know the easiest solution would be to simply break the site up by its sections into individual html pages instead of loading swf files into 1 movie embedded in a single html page. But this really blows the continuity flash offers out the window (and makes it more difficult to use the xml files that store the site’s content). I would love a more elegant solution like changing the url of a browser window -- when the user bookmarks the page, it will store a unique url and this would be parsed when accessing the site the next time the bookmark was called. Has anyone has similar concerns relating to sites make entirely in flash? Any solutions?
Thanks!
Helpme W/buttons: Going Forward And Back With Frames
So I have a bunch of stopped frames in a row. On each one I have two buttons. One goes to the next frame, one goes to the previous frame. For the one which goes forward, I can just write
Code:
on (release) {
play ();
}
However, for each one which goes backward, it has to be different. For example, on frame 20:
Code:
on (release) {
gotoAndStop (19);
}
What I want to know is if there is a playbackwards (); command or something which is the opposite of play();, which I could just copy and paste. The reason for this is that I want to insert a frame in the middle of all of these. Now, the other frames remain the same, but frame 20, for example, becomes frame 21, so i'll have to change the button otherwise the back button will go back 2 frames. As I don't want to change each one painstakingly, is there an actionscript command which is the opposite of play()?
Smaug, the dragon
Creating A Back/forward Buttons For A Flash App
Apologies if this has been answered already- i did a search but I couldnt solve my problem. If someone finds a thread that does, please tell me.
Problem: I am creating an application in flash 2004 MX that will run in its own projector, and i want to add Back/Forward buttons like in your web browser. This app will be divided into 4 scenes, with each scene having a about 4 pages in it. It'll be a 16 page app basically.
Could someone tell me a way of creating this- bearing in mind that Flash will have to remember pages from different scenes.
I'm not brilliant with AS, my skills with using variables and functions are at about n00b level.
Thanks - you'll be saving my ass!
[CS3/AS2] Animating A Menu From Forward And Back Buttons
I have a long menu of horizontal thumbnails. When I press the Next button I want the whole thing to move say 100 pixels forward and then 25 back. With the Prev button I want to do the opposite.
I've been looking at tween classes and I believe I understand them to a degree. I know how to do two tweens at the same time, but how do I do two consecutive tweens from a single button press?
Also I understand how to move an MC from its current position to specific coordinate on the stage, but how do I move it a certain amount of pixels from its current spot instead?
Disable Browser Forward Back Buttons?
This is a javascript question really, but does anyone have a script to disable the forward and back buttons in the browser?
I normally avoid building flash pages that are all contained within one html page, because it drives people nuts when they click 'back' and end up accidentally exiting the page and having to reload the movie again. But this time it's unavoidable.
Editing Forward And Back Buttons In Gallery
I downloaded an xml gallery setup from FlashDen and need to edit the advance buttons for the thumbnail images. Currently the buttons only advance the thumbnails one at a time. Ideally, I would like them to scroll the thumbnails until you roll out. I would also like to add a scrollbar as well but that's the next stem. I've posed the question to the guy who created it but he doesn't respond back on it. So I've come here for help!
Anyway, here is the code for the back button:
on (rollOver) {
if (thumb_menu._x>thumb_menu.destX-0.5 && thumb_menu._x<thumb_menu.destX+0.5 && thumb_menu._x < thumb_menu.originX -5) {
thumb_menu.destX = thumb_menu._x+(thumb_menu.thumb_mc._width+_parent.thumbSpacing);
}
}
Now here is the heirarchy for the thumbnail setup for this:
menu_mc is a movieclip that contains the bttnPrev and bttnNext advance buttons along with a group that contains the holder for the thumbnails that are loaded. Within that group is a movieclip called thumb_menu which then contains the movngs are nested.
Hope I have given enough info for help.
Thanks,
Dave
Navigating Through Images With Forward And Back Buttons?
I would like to have 2 buttons that will navigate forward and backwards
through a series of images. I'm thinking all of the images will be
placed inside one movieclip? If so, how do you create a forward and
backward button on the stage that cycles through the images in the
movieclip?
Thanks.
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
Back Forward History Buttons In Flash
Can anyone help?
been up all night trying to sort this out.
Im trying to make history buttons (Back/Forward) in swf files and want to link them to my dreamweaver pages.
been looking around and have found someone talking about (history.go)...! Im a bit new to thi,s so I think I need things spelt out.
Hope someone can help
Cheers
Matt
Dreamweaver Timeline Back & Forward Buttons
Hi,
I've used Dreamweaver MX 2004 to create a page on my website that rotates through a series of images using the Timeline. Dreamweaver comes with behaviours to start and stop the timeline but l need to have a button that also enables a user to progress forwards or backwards by one frame at a time. I have only found one place with any help with this on the net: Dreamweaver Extensions
The first extension on this page uses a forward and back button but unfortunately when l try to install this extension, Extension Manager just crashes. Can anyone either help me with this or point me in the direction of someone or somewhere that can. Thanks
Delirium Sets In...please Help...back/forward Flash Buttons
so I have been trying to figure out how to create back/forward flash buttons. I found this tutorial and now am having lots of problems and questions. Has anyone gone through this tutorial I am talking about and did it work for anyone?
http://www.flashkit.com/tutorials/Ac...-595/index.php
is there another way around this?
please help...
thanks
galanova
Controlling Forward/Back Buttons Using Array Entries
Hello,
I'm building a course in flash, and I would like to load movieclips to a static background/menu using an array to establish loading into a static lesson movieclip so that I don't have to program the forward/back buttons with goto actions, just increment or decrement an array element, and if they are at either end of the array, the appropriate buttons no longer needed would gray out or disappear.
Thanks for any suggestions, I think this would make the building of these course modules much faster and easier, I'm just too new to indepth actionscript to figure it out.
Thanks.
Forward/back Buttons With Active/inactive Functionality
Hello, I was looking to create an album that consists of 3 or 4 visible images at a time that users can look through. I wanted a forward and back button on this but at the beginning of the album, I'd like the back button to be inactive and the forward button inactive at the end. I know this isn't something new so I wondered if anyone knew of a script or a movie that has been made to do this.
Kirupa's PhotoGallery...thumbs Instead Of Back/forward Buttons?
I've searched and have been unable to find a solution...
In reference to Kirupa's PhotoGallery tutorial, what I'm trying to do is use thumbnail images for the buttons to call the .jpgs in the array, rather than simply "forward" and "backward" buttons. However, the button code doesn't seem to handle the photo path, i.e.
ActionScript Code:
on (release) { _root.changePhoto(myPhoto.jpg); }
doesn't do what I want. Any suggestions?
|