Please Help With Back "return" Button
I have a project that is going to be a projector on a cd rom. There is an initial movie with a menu of items. Once one item is selected it is directed to another swf. After or during playback of this swf I need the option of a back button, which will revert back to the original swf. Possible? What is the syntax for such a feat?
Here is the code for jumping to the 2nd swf (ex1.1), yet if I want to return using request url (ex 1.2) or call the swf directly it opens a new window. Since this will be a projector that is not an option. Any help is greatly appreciated, so thanks...
(ex 1.1) btnArch.addEventListener(MouseEvent.MOUSE_UP, onClick); function onClick(evt:MouseEvent):void { this.parent.gotoAndPlay("ArchSkip"); }
----------------------------------------------------------------------- (ex 1.2) btnBack.addEventListener(MouseEvent.CLICK, Link2); function Link2(event:MouseEvent):void { var url:String = "main.swf"; var request:URLRequest = new URLRequest(url);
try { navigateToURL(request, "_self"); } catch (e:Error) { trace("Error occurred!"); } }
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Return/back Button
He everyone:
I am working on a project that will contain multiple (over 50) pages. I want to make a back/return button that can keep a history of the path the user has taken while navigating the presentation, just like a browser does no matter how many pages you are into to your web surf experience. The other thing is I need to do this in AS3. I got it down to remembering one return action and it is on AS2.
Here is my code:
on my first frame I set my variable:
var curFrame:Number;
on the other frame where the user will navigate to I have:
back_btn.onRelease = function():void
{
gotoAndStop(curFrame);
}
Like I said, it only works for keeping track of on return action. Any help would be great.
Thanks!
Rafa.
Edited: 11/06/2008 at 12:14:48 PM by rafa@mediatech
Back Button To Return To Last Viewed Section In Fl
I am working on a Flash based CD Rom. It works by a simple navigation that moves the play head to a frame label that loads an external SWF into a movie clip. We need to have a back button function that would take the user to the last section that they viewed. So the play head needs to go to the previous frame label when this button is clicked. I am sure there is a simple way to do this with variables but it has me stumped. If anyone could point me in the right direction it would be great.
Thanks
Return Back Ball
i had enclosed the attachment how to hit the boundary and return back
Return A MC Back To Its Original Location.
I have attached a fla with comments, but basically...
I have some draggable clips. After they are released (mc.onRelease), and a certain condition is met, i would like the clips to return to their original coordinates. This is a value that is stored within the clips.
I’m a bit frustrated, and have removed all the junk that hasn’t worked so you have a clean slate.
The code is all on one frame, and i have commented it out for you.
in the Action Script within the attached file look for >>>>
else {
//***********HOW CAN I RETURN IT BACK TO ITS ORIGINAL LOCATION IN A SMOOTH MANNER**************
}
This is where i think i need to add a refernce to a function?
If you can help me I would very much appreciate it.
Thank you Thank you Thank you.
Josh
Can You Use The Back Button In A Browser To Go Back To Go Back In A Flash Movie?
Hi
In html pages it is easy to go back (the back button in the browser) to the last page you were on. But when you have got a flash site in a html page you cannot go back to the last page in the flash site using the 'back' button in the browser. Is there anyway you can change this so that you can use the back button in a browser to go back to the last flash frame?
Return Split() Array Back To A String
ola,
I have loaded external data into flash, got a word count using split(" ").length, and now want to put only the first 10 words of the file into a text field. this is where my brain stops, i have also made an array of all the words but still can't glue them back together as a single string in a text field... am I missing the obvious... thanks in advance for any help.
smashing
How To Return Data That Isnt Back Until An Event Fires?
Hey guys,
I have a function like this, and I want to use this function somewhere that needs data returned from this call. Is it possible to get data from a url another way that doesnt require waiting for the event to fire so I can return the data?:
ActionScript Code:
public function convertToLongLat(location:String):String{
var myRequest:URLRequest = new URLRequest("http://local.yahooapis.com/MapsService/V1/geocode");
myLoader = new URLLoader();
var myVariables:URLVariables = new URLVariables();
myVariables.location = location;
myVariables.appid = "fsadfds--";
myRequest.method = URLRequestMethod.GET;
myRequest.data = myVariables;
myLoader.addEventListener(Event.COMPLETE, onGetLongLatForSearch);
myLoader.load(myRequest);
return dataIWantToReturn;
}
Stopping A Function And Return Back To Same Position - Help Needed
Any one pls help ,
Friends i have a function in that movieclips color will change according to time
what i need is if a specific action occurs say pressing a button (poweroff) or if the value of x==1; the function should be stopped where it is .....
if i press some other button say poweron the function should start again from the same place.....
Note: there is only one frame and stoping the movieclip like mc.stop(); not working in this case, return and killfunction completely get me out from the function.
function fadeArrayTrans(){
//trace("hai");
myCO = new Color(_root.lightsholder1.examplered1.SomeImageCli p);
myCO.fadeTransform(transArray[lastTransArray], 3750, fadeArrayTrans);
lastTransArray++;
//return;
lastTransArray%=transArray.length;
}
transArray = [];
transArray[0]={ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0};
transArray[1]={ra:100, rb:0, ga:100, gb:255, ba:100, bb:100, aa:100, ab:0};
transArray[2]={ra:100, rb:0, ga:100, gb:255, ba:100, bb:0, aa:100, ab:0};
transArray[3]={ra:100, rb:0, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0};
transArray[4]={ra:100, rb:0, ga:100, gb:0, ba:100, bb:255, aa:100, ab:0};
transArray[5]={ra:100, rb:255, ga:100, gb:0, ba:100, bb:255, aa:100, ab:0};
transArray[6]={ra:100, rb:255, ga:100, gb:0, ba:100, bb:70, aa:100, ab:0};
transArray[7]={ra:100, rb:255, ga:100, gb:40, ba:100, bb:100, aa:100, ab:0};
lastTransArray = 0;
i have pasted small part of the code which may give idea about my problem. if you insist friends , i will post full script
Thanks in Advance
Glide Back. How To Return A Dragged Clip To Original Position.
I have an interface set up with draggable buttons. I am able to get them to return to their original position by an "else" and "set property _x & _y" command. But I would like them to glide (tween) to their original postion, not automatically appear, similar to what is seen here: http://www.webtronik.com. If anyone can help, thank you.
Keyboard Back Button Acting As Browser Back Button
I'm having problems with a Flash MX Sign up form I'm implementing on my website.
The form has a series of frames which take the user through the sign up process, before clicking through to the online payment gateway. Each of these frames is anchored to allow the user to click the browser Back button to go back to the previous frame (rather than the previous movie).
However, the keyboard back button is now acting as a browser back button.... Any ideas why?
Any help with - or solutions to this probelm - would be greatly appreciated.
Thanks in advance for your time.
Regards
Rob
Keyboard Back Button Acting As Browser Back Button
I'm currently implementing a subscription sign up form in Flash MX. All of the frames of the sign up movie are anchored so that the user can click Back on his/her browser and go back to the previous frame of the movie.
However, when the user now tries to delete/amend info (eg, first name, username, etc) on the form using his/her keyboard Back button, it triggers the browser Back button.
Anyone out there experienced a similar sort of problem - ie, why the keyboard Back button is acting as the Browser Back button?
If anyone has any ideas/solutions, I'd appreciate any input.
Cheers
Rob
Using Back Browser Back Button On SWF Loaded Site
I have created a web site that runs on loading different swf files. These files contain navigation and plain content. My problem is that I need to use the browsers back button. I dont think I can do this with anchor tabs. Help meeeee. It's driving me nuts. I don't see any questions out there that address this on a site that is with multiple swf files.
Anybody?
Using Back Button In Flash "like A Browser Back Button"
hey all/reef,
basically this code will work like a browser back button its very simple but "could end up very long" basically it will act "similiar to the browser back button"
Code:
on (release) {
if(page1 = _currentframe){
_root.gotoAndStop("quiz");
} else if (page0 = _currentframe){
_root.gotoAndStop("register");
} else if (page2 = _currentframe){
_root.gotoAndStop("q2");
} else if (page3 = _currentframe){
_root.gotoAndStop("q3");
} else if (page4 = _currentframe){
_root.gotoAndStop("speciality");
}
}
it works when the (page1 = _currentframe){ is rotated with the first if statement...because for somereason it seems to not recognise the "else if's" anybody or reef have any ideas why??
Back Button In Flash Projector Like Javascript's "history.back"
Please tell me how to make a back button in Flash for projector (exe) file. The back button should function like the javascript's "history.back". I have 100 scenes that points to one target scene. If a user clicks the back button in the target scene, he/she must go to the scene from where he came.
**** I am not looking for named anchors that works for swf file in browser.
Mc Return Button
hi, i have a dragable window in my swf, which has a button to reset the position if the user wishes to do so, here is the code in my return button
onClipEvent (load) {
speed = 10;
_root.target = 75;
_root.target2 = 14;
}
onClipEvent (enterFrame) {
if (_root.back == true) {
_y += (_root.target-_y)/speed;
_x += (_root.target2-_x)/speed;
}
}
now this works fine but the text goes all blurred and jumpy when its moving back, i heard you can use Math.round to move this one axact pixel at a time but cant seem to get it working.
can anyone help
thanks brian
How To Use The Return Button?
Can someone let me know if it's possible to detect and use the return button in a flash movie without the use of the asii code...
Thanks!
Mc Return Button
hi, i have a dragable window in my swf, which has a button to reset the position if the user wishes to do so, here is the code in my return button
onClipEvent (load) {
speed = 10;
_root.target = 75;
_root.target2 = 14;
}
onClipEvent (enterFrame) {
if (_root.back == true) {
_y += (_root.target-_y)/speed;
_x += (_root.target2-_x)/speed;
}
}
now this works fine but the text goes all blurred and jumpy when its moving back, i heard you can use Math.round to move this one axact pixel at a time but cant seem to get it working.
can anyone help
thanks brian
Return To Top Of Page Button
I have a long flash page. I would like to add a button at the bottom of the page that will take you back to the top. How do I do this?
[F8] Simple Return Button
Flash 8 Pro
I am trying to create a button that will return to the frame that was last visited. For example: frame 56 may be accessed from 13 different other frames in the movie. I would like a button that when onRelease returns to the last visited frame of the 13 possible ones? I am an ok coder learning more and more everyday, funny how this is such a problem for me?
Anyone?
Simple Return Button Help
Flash 8 Pro
I am trying to create a button that will return to the frame that was last visited. For example: frame 56 may be accessed from 13 different other frames in the movie. I would like a button that when onRelease returns to the last visited frame of the 13 possible ones? I am an ok coder learning more and more everyday, funny how this is such a problem for me?
Anyone?
[F8] Button - Move Then Return On Mouse Over?
hey guys i've just been trying to figure out how to do this task in FLASH 8, and after googling a bit i saw this forum so i thought i'd give it a shot asking some people who might not be as brain dead in flash as i'am.
anyway!
How do I make a button (or graphic of some kind) that when the mouse is placed overtop, an animation happens - lets say the button has a ball beside it and then moves over to the side a bit when the mouse is overtop - and then when you take your mouse OFF, it returns to where it was originally.
i'm still learning a lot of stuff, so if i'm missing something simple please feel free to ridicule! But how do I do something like this?
Simple Button, Return To Start
how do i return to the very first frame in my flash movie... something to do with root....
tried this and it wont work
on (release) {
gotoAndStop("root", "1");
}
cheers
Getting A Button To Return To Certain Frame In Over State
First, the example: http://www.theinsaneasylum.com/bevansdesign/demo.html
I've got a button set up this way:
Up State: Plain blue dot. Does nothing.
Over State: Blue dot grows, fades away, showing image. Doesn't loop.
Down State: Image spins in place continuously.
Flash's default behavior is to go back to the Over State once you've released your mouse button, but I'd like to have it go to the last frame of the movie clip I have on the Over state instead, so it doesn't do the zooming out thing again. Is there any way to do that?
Thanks for your help!
EDIT: And now that I think about it, it would be nice if I could have another movie play when you Mouse-off it.
Button Help, And In Return My Undying Love
hi, I am a flash novice. I have been trying to figure out how to make a "rollover" happen within a "rollover", let me clarify;
I have a banner with buttons inside. More simply, A rectangle with text inside(home, media, links, etc) Initially I want the banner and buttons to appear gray or not "active" when the banner is rolled over I want it to appear "active" so to speak (I want the color of the banner and buttons to go to their "up" state) and when the buttons are rolled over I want them to animate but I want the banner to remain in its rollover state and not revert to its "inactive" or gray state. I am just unsure how to achieve this. Possibly hit test or get bounds?
If my explanation is unclear, here is an example of what Im trying to do with the navigation bar http://www.anovadesign.com/
PLEASE help!
Thanks in advance
Button - Doesn't Return To Up State
So I've got a button (not an MC) named btn_1 on the stage and the following AS in a frame above:
ActionScript Code:
var numButtons:Number = 2;
enableDisableButtons = function(btnNum){
for(i=1; i<=numButtons; i++){
this["btn_"+i].enabled = true;
}
this["btn_"+btnNum].enabled = false;
}
btn_1.onRelease = function(){
gotoAndStop("pop_1");
enableDisableButtons(1);
}
When I click the button, it does, in fact, become disabled - however the cursor remains a hand and the button stays in its over state. If I click it again or roll off of it, the hand turns to a cursor and the button returns to its UP state.
I want the hand cursor to return to the regular cursor and the button to return to its UP state when it is clicked.
Any thoughts?
Questions Re: Button Event Code Syntax W/ Variables & Browser Back Button Programming
SHORT VERSION OF MY QUESTION
I have some variables in my movie named backMovie & backFrame, Then I have a button that I'd like to attach the following code to, but obviously I've formatted it incorrectly. Could anyone please offer me the correct syntax for using variables in these instances.
on(press){
loadMovieNum('"+backMovie+".swf',1);
}
on(release){
_level1.gotoAndPlay(backframe);
}
LONG VERSION OF MY QUESTION
I have a movie and my client has now said they cant live without the back and forward buttons on the browser working.....Grrrr
So I did some research on programming the browser back button but determined that it wasn't cross-browser friendly and therefore it was safer to try and create a back button within my movie. The problem is I am loading several multi level swf's and also am a very novice actionscripter (so I'm sure my way is the looong way)
Anyway, I managed to create several variables that change each time a different navigation element is clicked.
What I'm trying to do is reference some of these variable in the programming of my movies own 'back button'. But I don't know how the code should look. My variable names are 'backMovie' & 'backFrame'.....and I've tried variations of the following:
on(press){
loadMovieNum('"+backMovie+".swf',1);
}
on(release){
_level1.gotoAndPlay(backframe);
}
But they don't work
If it helps, I've uploaded my practice files to: http://www.lucid-life.com/back-button-workaround.zip
(It would be a bonus to learn that the actual back button of the browser could be programmed with this actionscript...but I dont think that's possible...is it? and using the anchors method with the back button woudln't work because I'm using levels...right?)
Any help or advice greatly appreciated!
Many Thanks in advance
Cheska
Invisible Upstate Button Becomes Visible On Return?
Invisible upstate button becomes visible on return????
i have eight buttons on the first scen and they are all invisible. In the upstate of the button it´s nothing, in the overstate it´s a picture.
When i go over the buttons i can see a picture and when i click, i go to a new scen. When i go back i want the button to be visible in the upstate .
I want the buttons to light up in the first scen, and showing me where i have been.
Please help
OnRollOver = Function() --> Return Dynamic Button Name
I've got a set of dynamically created listElements wich are Buttons. When I roll over them I want them to trace thier names(numbers). The following script doesn't work, the last value of "i" is alway returned instead of the number corresponding to the aktual listElement. Any ideas??
thx Alex
PHP Code:
this.onEnterFrame = function(){
for(i=0;i<numElem;i++){
this["listElement"+i].onRollOver = function(){
trace("listElement"+i);
}
}
}
[F8] Return String Based On Button Pressed?
I have a clip called "Cabell". It is one of many clips based on school names.
When I rollover the clip "Cabell" I need a pop-up to appear that says "Cabell Elementary". BUT, another clip named "Adams" should return "Bryan Adams High School". So they're not all elementaries.
My first thought was to just create a 1 item array like:
Cabell.Array = ["Cabell Elementary"];
and then code the clip like:
Cabell.onRollOver = function() { schoolName = this._name[0];}
But that doesn't seem to work. Any suggestions on how to cull the clip's name for use in determining the full name?
Eternal thanks, as always.
-Layne
[CS3] Remember Button State On Return To Scene
Hi there,
I have a main scene which has a toggle sound button which basically turns music on or off. I have done this by creating a movie clip with 2 button inside of it (sound on and sound off button). This works fine when I am in the main scene.
If I turned the sound off and then go to another scene the sound remains off, which is fine. However if I return back to the main scene, the sound plays again. This is the problem.
Is there a way to check to see if I have turn the sound off or on and when I return back to the same scene that it remember what I pressed?
I am using actionscript 2.0
thanks in advance for any help.
cheers
Alternative Return To Home Button For Carousel
I am currently using the Carousel III for a navigation model. Ive got the nav to work perfectly but am struggling as I want to add a home button in a side menu Ive added myself. I attach the 'unReleased' function on release and all the other icons return to the Carousel structure except for the icon which is highlighted. What Im looking for is almost a 'reset' function to initiate the main Carousel. Any help would be greatly appreciated.
Tell Flash Which Button Is The Previous Button So It Can Goes Back To Normal
i have many buttons with rollOver and rollOut states... when the user clicks on a button the button stays red.. when the user clicks another button that button stays red and the previous button goes back to normal..
well how do i tell flash which button is the previous button so it can goes back to normal as the next button clicked goes red???
please help
How Can I Make My Button Revert Back When Another Button Is Chosen?
http://filebox.vt.edu/users/gyanez/f.../main_menu.fla
http://filebox.vt.edu/users/gyanez/f.../main_menu.swf
I am creating the navigation bar for my first Flash site. This is what I want to have happen:
When user first enters site the "home" button is already highlighted and disabled since this is the first page user sees. When the user rolls over another menu item that item gets highlighted while previous button choice remains highlighted too..BUT when user clicks the new menu chocie the previous highlighted menu choice should revert back to its other state since the user is now on a new part of the site.
I cant seem to get this done with what I currently have...looks like buttons dont have hierarchy so I cant tell it to do something like: HB.HB_up_mc.gotoAndPlay(2);
Any help would be appreciated.
Button In Movie Clip To Return To Main Timeline
This is similar to the question just posted. I have a movie clip with buttons in it. When a button is pressed I want to exit the movie clip and go to Scene 2 and what ever frame corresponds to that button.
I scripted a button:
on(release) {
gotoAndStop ("scene 2", 1);
}
This works when you are in the movie clip pressing the buttons but on test movie nothing happens.
I tried
on (release) {
unloadMovieNum(0);
gotoAndStop ("Scene2", 1);
}
on test movie the screen goes blank. Apparently it unloads the movie clip but does not go to scene 2 or anywhere else for that matter.
Thank you for any ideas you can give me.
User Controls Button To Return To Previous Scene
I am needing a tutorial that will help me add actionscript to a button on a scene that will allow the user, upon clicking, to be returned to the scene they just left.
Could someone point me to a tutorial or give me some hints on how that can be done?
Thank you.
Create Button To Play A Clip And Return To The Original Screen
In the end of a flash movie, I need to know hot to make it so that when you click on a button, a short clip or "easter egg" can play and when it is over for it to go back to the original ending screen. How can I do this in one flash file? Thank You
Flash Button And The Browser BACK Button
I have a Flash Button that I'm using to drop a user down to an anchor link at the bottom of the page I'm on.
When the Flash button drops the user down to the anchor that's intended...afterward....when the user hits the browser BACK button to be taken back to the original position above within the page.....it instead takes them to the previous page visited.
How do you set the Flash button to remember the original position and go to this position when the BACK button within IE 6 is used?
Thanks!
SKURGE
Flash Button And The Browser BACK Button
I have a Flash Button that I'm using to drop a user down to an anchor link at the bottom of the page I'm on.
When the Flash button drops the user down to the anchor that's intended...afterward....when the user hits the browser BACK button to be taken back to the original position above within the page.....it instead takes them to the previous page visited.
How do you set the Flash button to remember the original position and go to this position when the BACK button within IE 6 is used?
Thanks!
SKURGE
Back Button Replays Button Slide In.
I have a flash menu that the buttons slide in. When you click on one of the buttons it links off to an html page. When a user pushes the back button on their browser, the buttons slide in again, is there any way to stop this, when they go back it should just be the buttons in their final positions.
Thanks
Mike
AS2: What Datatype Should A Function Return, If It May Not Return *anything*?
The title of this post may not make much sense, let me explain...
I have a function:
findSurface(origin:Point, vector:Point, attempts:Number):Point {...}
The function has an obscure use, but the idea is thus: given those three arguments, returns a point IF the 'line' (created by the origin and vector arguments) intersects the object the function is called on. [but that is another story...]
More importantly, if there is no point of intersection at all, what should the function return? Void? Null? Undefined? Object? Or can I use one of those return types instead of Point incase the function does not encounter an intersection?
I'd be glad to try explaining better if anyone might know, thanks.
Back Button, Next Button, Exit Button
I have created a flash MX project by linking from scene to scene. and i don't know how to apply the actionscript for the "back" button, "next" button as well as the "exit" button. for the Back and Next (just like we have in our browsers). for the "exit" button, when the user click on it, it will display a confirmation message. can someone please help me.
thank you..
Back Button/ History Button...
Does any body know if it is possible to go back to the previous page ion a flash site. Like the history button in HTML. So the viewer goes back to the page they have just visited.
Chhers. Vic. :-)
Back Button Forward Button
Hola
I tried placing named anchors in the frames that i want the user to go back / forwards to. it seemed to take okay.
when i tried F12 in Flash, it worked !
now, when i move it over to Dreamweaver and try the old F12 routine, it doesnt work at all !
why this discrepancy ? im very confused now.
can anyone help out on this one ?
Back Button
does anyone know how to make a back button work in flash to go between the scenes????
Joanna
Back Button
Hi there,
I want to create a BACk button in my flash movie, that takes me back to the last url visited, ie the same use as the browser back button. Is that possible?
cheers
Back Button
Hi,
I have a button in flash. What i want is, when i click the button, it should integrate with javascript and give me the previous html page. Quite simply it shud be a back button which gives me the previous page.
Thanks in advance.
The Back Button
I am making a Flash website, and I would like to have the back button on it (because the explorer link doesn't work correctly). So this is what I tried :
on (release){
gotoandStop("previous")
}
The problem is that the keyframes don't allways follow each other.
Help please...
|