Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








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




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-06-2005, 08:00 PM


View Complete Forum Thread with Replies

Sponsored Links:

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 Back And Forward Buttons
Does anyone know how to implement a simple back and forwards button that work over several independant files?

View Replies !    View Related
Play Back Or Forward To Frame Label
I am trying to create a site that has six different sections. Each section has a background that zooms in and fades into the next image. For example if the user clicked the button for image 3 it would animate through image 1, then 2 and stop on image 3. If the user were to then hit the link for image 1 the animation would play backwards through to the first image passing image 2 along the way. Of course if the user hit image 6 from image 1 it would play through all the transitions in between.

I could do a hack (no actionscript) version of this but it would take 36 seperate animations which seems like overkill. What I need is to be able to play through to specific points in the timeline to my destination. In a perfect world the speed of animation would increase the longer the distance, Say 1 to 6 would play fast, but 1 - 2 would play slow ,but for now just navigating through the timeline would be a great step forward.

if there was something like on (release) {playTo("image3"); }
my life would be easy, but playTo doesn't exist.

This post is for MX 2004:

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
Button Help For Forward/back In Single Frame Script
I know I'm going to dope-slap myself when I get the answer...

My one-frame movie has about a dozen "pages" navigated by small individual buttons (main1, main2...) generated through my main script, and each of these buttons are assigned text and images that build that page on the fly. I'd also like to have forward and back buttons to step through each page sequentially, but I've tried everything I can think of to target the specific button's content and page and can't make it work.

Is there an obvious solution I'm overlooking? I've attached part of the script that generates the buttons and controls the associated text. I'm grateful for ANY insights.

Thanks









Attach Code

function setDataProvider(container) {
for (q=0; q<12; q++) {
removeMovieClip("main"+q);
}
for (i=1; i<icaMenu.firstChild.childNodes[pageNum].childNodes.length; i++) {
attachMovie("mainButton", "main"+i, i+1000);
myButton = this["main"+i];
myButton.button.maincopy = "<bch>"+container.mh[i]+"</bch><bc>"+container.sh[i]+"</bc>";
myButton.button.chapter = "<ch>"+container.mh[i]+"</ch>";
myButton.button.subHead = "<sh>"+container.sh[i]+"</sh>";
myButton.button.subTitle = container.mh[i];
myButton.button.photo = container.img[i];
for (k=0; k<container.sb[i].length; k++) {
myButton.button.sidebar += "<sb>• "+container.sb[i][k]+"</sb>";
}
myButton._x = (568-(myButton._width*(icaMenu.firstChild.childNodes[pageNum].childNodes.length)/2))+(((145/icaMenu.firstChild.childNodes[pageNum].childNodes.length)+myButton._width)*(i));
myButton._y = 483;
}
}


function renderPage(target) {
whichPic = this[target].button.photo;
fadeOut = true;
_root.bodyCopy_ta.visible = _root.sideBar_ta.visible=false;
_root.bodyCopy_ta.text = this[target].button.maincopy;
_root.sideBar_ta.text = this[target].button.sidebar;
}

View Replies !    View Related
Smooth Play-to-named-frame (forward Or Back) In A Mclip?
Say I have a movieclip which is a simple tween - a growing red bar used to represent a thermometer (therm_mc)

There are named frames at every 10 degrees C on the scale of the thermometer. (10c, 20c, 30c...)

There are corresponding buttons for each named frame (10c_btn, 20c_btn...)

How do I make these buttons tell the thermometer movieclip to play smoothly from whatever position it is in to the requested position whether it is forwards or backwards? ie if the thermometer is a t 50C, if I press the 10C button I want it to animate smoothly to 10C - preferrably with ease.

Thanks in advance!

Scott @ AOK learning Ltd.

Flash8 Pro
OS X

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
Forward One Frame Back One Frame
Hi there, been a long while since I was here. Busy, busy, busy.

I am using flash pro cs3 with actionscript 2 file.

I have a couple of graphics that I want to attach functions to. When I hit one I want my timeline to advance one frame. When I hit the other I want my timeline to go to the previous frame.
Do any wise members know how to achieve this?

Peace

View Replies !    View Related
Hi,..btn Back And Forward
Hi,....I would like to do a BACK and FORWARD button like IE,...but I don't know how I can do that,......I explain
In my SWF I have 6 scène, and two button one back and one forward and if I pass from scene 1 to scene 4 and I click on the "back" Button, I would like to return has scene 1 not scene 3 and 2 , how can I enregister a history of the last visited scene ..
thanks a lot!!!

View Replies !    View Related
Going Forward And Back...
Hi all,

Super easy question I hope.
I want to allow users to scroll through some photos simply using a forward arrow and a back arrow.

I only have to load about 10 photos so can probably keep everything in one movie.

But, what code do I associate with the back/forward arrow buttons.

Argh, I know this must seem stupid to many of you. Sorry and thanks

Kellys

View Replies !    View Related
Javascript Back And Forward
I have a webpage with multiple frames (a lot of frames! i think like 10 or so). On one of the frames is the menu and in the other the main contents.
1. What is the javascript for going back and forward? javascript:back() and javascript:forward() i think, but i'm not sure
2. Should i put this in an fscommand or geturl?
3. Any recommendations on how to get the main contents page to go back

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 BACK Via ActionScript
Hello people.

Ok, I have two buttons, one for going forward and other to go back. To go forward I use:

on (release) {
play ();
}

But how can I use ActionScripting to do the same but BACKWARDS, instead of using:

on (release) {
gotoAndPlay ("2 company", 1);
}

across every one of the 25 scenes I have?

Thank you.

View Replies !    View Related
Two Steps Forward, One Back
I need the gotoandplay to step two frames forward then loop back one until query is complete. Problem is it initially loops back to the original frame where the submit button is located. After I hit the button the second time it goes ahead and completes the query.

Frame 19:
on (release, keyPress "<Enter>") {
ownerinput = ownerinput;
startnum = 1;
endnum = 20;
loadVariables ("_variables.cfm", "", "POST");
gotoAndPlay (21);
}

Frame 20:
if (_root.Status == 1) {
gotoAndStop (21);
} else {
gotoAndPlay (20);
}

Frame 21:
bunch o'stuff to parse the returned cfm data.

View Replies !    View Related
Forward And Back From Within Flash
this should be a simple one:

I'm building a kiosk interface in flash and it doesn't have the standard browser frame. Can I activate by browser's forward and back buttons from within flash? Thanks in advance;

-#

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
Forward And Back And Stop?
I have made a geallery movie clip and have the controls on the main timeline.

Iam using the following script to play the gallery mc forward and back:

onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.direction == "forwards") {
this.gotoAndStop(this._currentframe+1);
}
if (_root.direction == "backwards") {
this.gotoAndStop(this._currentframe-1);
}
}


However at approx every 25 frames a new image appears and I would like the play stop there and continue to previous or next image on button press. Below is the script for the button:

on (press) {
_root.direction = "forwards";
}


and


on (release) {
_root.direction = "backwards";
}


At the moment the mc will just continue to play, can I make it stop at a set point?

Best Regards

Troy

View Replies !    View Related
Back/forward Buttons
how would i make simple back and forward buttons(besides the ones in the browser)?


thanks

View Replies !    View Related
MC If-then Play Forward-back..........?
Brand new to actionscript (scripting period), but trying to create my first. Haven't found quite the right answer on the existing boards, so I'm posting:

- I have a movie clip named "test", 60 frames in length.
- I have created 6 buttons, each to progress or digress the movie 10 frames (depending on rollover or rollout)
- Button 1 needs to do the following, and then I'll figure out the other 5 from there:

onRollover
-if target "test" is at frame 10 or higher, then play backward (from current frame) to frame 10 and stop
-if target "test" is at frame 10 or lower, then play forward (from current frame) to frame 10 and stop

onRollout
-play target "test" backward (from current frame) to frame 1 and stop

Any help is good help... thanks.

View Replies !    View Related
Forward And Back Arrows
I have a movie that load other movies into level1 and a navigation bar into level2.

Each movie has stop actions througout. Is there a way to make a forward and back button in the navigation movie that will go to these frames and if at the end or begining of a movie will goto the previous or next frame in the main movies timeline?

Kind of like you can do in Director with frame markers?

Or would I have to just put these buttons in each movie with a separate action to go to each individual frame I want it to stop at?

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
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
Forward And Back By Mouse
Hopefully someone can help as i have to present this in 4 hours!
Basicly i am doing a powerpoint type presentation in flash.
I need to be able to control going forward and back a screen by the mouse buttons.

I am as far as testing with a button just off screen with the following code:

on (keyPress "<Enter>") {
nextFrame();
}

But how do i get it working with the mouse?

Any help appreciated.

Al

View Replies !    View Related
Imgs With Back And Forward
I have had flash 8 for awile but never opended. I made a new site and I belive flash would help me organize my images a little more.

If someone can point me to a few tutorials on how to accomplish the following items.

5-10 images around 1000"height"x700"width" that at bottom that has a previous page - next page or a Home button that goes back to page 1.

I mostly use Edit 2 "php edtior" or Dreamweaver for html and Now I want to move into flash but all the tutorials I am looking at offer everything I do not need.

Thx in advance.

View Replies !    View Related
Back And Forward Button
Hi,

I´d like to know, wich code you´ll use to a button in flash, to make a page (history) go back 1 position.

Thanks

View Replies !    View Related
Forward, Back Menu. Best Way?
hi guys,

I wonder if you guys could help with a problem i've come accross.

I have looked about and searched the forum but cant manage to adapt what you guys are saying to what i need, maybe coz im a noob to AS but learning fast. (Not new to flash graphics side tho just AS)

What i have is a simple 4 box buttons menu that rotates.
Now what i want it to do is move left to right when the on (rollOver it moves the menu round).

So far i've got it to move round 1 way with (play) but the other way I need it to reverse im presuming.

I've attached a .fla file if some1 could have a look, Your know exactly what im talking about when you see.

Many many thanks in advance.

Stuart.

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
[FMX] Moving Forward And Back
I would like to let a MovieClip to move from lets say _x 200 to _x 800. When the mc reach the _x 800 it should return to _ 200 and visa versa. I like to do this with AS instead of with motion tween.

Somebody who know a god tutorial?

Thanks in advance

View Replies !    View Related
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

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
Function For Back And Forward
Hello Firends,

I need to create a function for moving the flash movie framelabel by framelabel. On the end frame of movie and on the first frame of movie the function should be play null value.





Your Friend
Himanshu Vyas

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
Back And Forward Using Arrays
i found a tech note on macromedia about creating a back button within flash, and using an array to "remember" your history. it works really well, but my question is, how would one alter it to add a forward button.

here is the code from the tech document.

http://www.macromedia.com/support/fl...ack_button.htm


in my project, let's say i have 4 keyframes on the main timeline. on the first frame, this code appears:

navStack = [];


on the next 3 frames, this code appears:

navStack.push(_currentFrame);


on the stage there is a button with this code on it.

on (release) {
if (_root.navStack.length > 1) {
recentFrame = _root.navStack.pop();
previousFrame = _root.navStack.pop();
goToAndPlay(previousFrame);
trace(navStack);
}
}

i've added the trace and you can see how it works. pretty slick. i'd like to add a forward button. anyone have any examples or thoughts on how to approach this.

thanks.

View Replies !    View Related
[FMX] Moving Forward And Back
I would like to let a MovieClip to move from lets say _x 200 to _x 800. When the mc reach the _x 800 it should return to _ 200 and visa versa. I like to do this with AS instead of with motion tween.

Somebody who know a god tutorial?

Thanks in advance

View Replies !    View Related
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

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
Back | Forward Buttons
Ok, how do i create buttons that go back, forward, reload, and home?

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
Disable Back/forward Button
Does anybody know if the back and forward buttons of the browser can be deactivated..?

Any help would really be appreciated :}

thanx

View Replies !    View Related
Default Back N Forward Button
where can i find easy and can download the tutorials abt default back and forward buttons? or anyone knows how to do it? thksssss

View Replies !    View Related
Now How Do I Create Back And Forward Arrows?
Since my movie loads external swf files into a blankmc in a main swf file. Is there script to make arrow button use the forward and back method similar to browsers? Will it remember that last movie loaded and go back to it.

thanks for your help
Patrick

View Replies !    View Related
Making A 'back/forward' Button?
I need to create a button that works like the browser 'back and forward' buttons in Flash. The best example I can find of what I mean is something like this... http://www.kvw.tv/ ...where the button previously clicked reamains highlighted and the menu to the right stays up for the section you were just looking at. (God sorry , rubbish explanation I know!)

Does anybody have any ideas for the best way of creating navigation that works similarly to the example I've given, I've tried faking this in the past with lots of scenes and labels, but I'm keen to learn the proper way of doing it!

If you can make any sense of this question and can give my some idea of where to start I'd be grateful, thank you!

Sarah

View Replies !    View Related
Back And Forward History Buttons
hello
what script do i need to use for a history whit back and forward buttons like in the browser window

thanx all

View Replies !    View Related
Any Way To Create Back/forward Button?
I want to create a back/forward button to go to the next or previous frame so that i dont have to recreate the buttons to target every frame. The reason i want to know how to create this is because im trying to create a tutorial to teach the basics of adobe photoshop, flash mx, html coding, etc. if anyone could give me advice on this or a way around it, it would be greatly appreciated

i am kind of a newb to flash so dont use big techy words when explaining it to me

View Replies !    View Related
How Do I Skip Forward And Back To Cuepoints?
Hi guys,
Im havin major problems figuring this one out right now, and need your help badly.

Basically I have a movie symbol with a long animation inside it (flash animation not video)on the timeline, and I want to add some buttons with actionscript which can control the timeline within the movie symbol to skip forwards or backwards to certain cue markers on the animation timeline so that users can "skip" parts of the animation or view them again..

Can this be done with anchors?

I know you can add frame labels which u can call using GotoAndPlay ("frame") but i just want some actionscript on the button which just looks for either the last or next label/ anchor and jumps to that frame and plays..

Really hope your guru's can help me out here!

Cheers in advance

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved