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




Can I Enable My Browser's Back Button With An XML Menu?



Hello!

I've been reading how to enable the browser's back button with Flash. I've already taken a look at Robert Penner's version and walked through the back button tutorial on actionscript.org. His source files are available here.

But, how can I apply this to an XML menu? Is it possible? Right now I'm using the menu from HGA77. (I'll attach to this post.) With this menu I just want to load different .swfs for each section of the site.

I know that the actionscript tutorial stated that hidden html pages are loaded and that marks the back button. Would I load the hidden html pages from the XML menu, like a link?? But then again, how could I label my pages so that the browser knows where I'm at?

Any help is much appreciated. I think this would be great if we all had a way to use an XML menu and the back button in our browser!



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-05-2005, 08:45 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Can I Enable My Browser's Back Button With An XML Menu?
Hello!

I've been reading how to enable the browser's back button with Flash. I've already taken a look at Robert Penner's version and walked through the back button tutorial on actionscript.org. His source files are available here.

But, how can I apply this to an XML menu? Is it possible? Right now I'm using the menu from HGA77. (I'll attach to this post.) With this menu I just want to load different .swfs for each section of the site.

I know that the actionscript tutorial stated that hidden html pages are loaded and that marks the back button. Would I load the hidden html pages from the XML menu, like a link?? But then again, how could I label my pages so that the browser knows where I'm at?

Any help is much appreciated. I think this would be great if we all had a way to use an XML menu and the back button in our browser!

Enable Browser Back Button In Flash
Hello All, I wanted to know if there were anyone successful at enablign the browser back button to work with their flash movie?

I have been trying for a couple of weeks now and not successful.

I had attempted to search the forum, but the forum search engine results came back with an error page.

I have attempted to follow the instructions located on actionscripts

http://www.actionscript.org/tutorial...sh/index.shtml
Quote:




http://www.actionscript.org/tutorials/intermediate/Enabling_a_back_button_within_flash/index.shtml




But were confusing at following the instructions and trying to incorporate the scripts within my homepage.

Has there been an updated version or something easier than the link above?

I have found this also and not sure how to incorporate it within flash or what else is needed to get it to work?


PHP Code:



function checkSO()
   {
      // If a shared object called siteSO already exists this will retrieve it otherwise it
      // creates a new shared object called siteSO
      var SO = SharedObject.getLocal("siteSO");
      if(SO.data.visitedAlready)
         {
            gotoAndPlay(5);
         }
      else
         {
            SO.data.visitedAlready = true;
            SO.flush();
         }
}
// Put that and this in the first keyframe of your movie, before the intro
checkSO();




Any help is greatly appreciated.

How To Enable Browser's Back Button In A Swf Movie
Hello
Can anyone tell me how to enable the browser back button (as in html pages) in flash movies
I have pages in different frames and would like to use the browser back button

Kindly someone help me on how to do this

Thanks a ton
shrejeet

Enable Back Button In Flash
Has enyone tried the tutorial on this ?

http://actionscript.org/tutorials/in...sh/index.shtml

I did it, it works perfectly (almost) locally on my Mac, but when I upload it to a server it stops working . . .

what's happening is that once on the server the jjavascript doesn't get passed on to the swf file and the magic doesn't happen.

I'm pretty confident it's not a "path/directory" problem as everything's in the same directory.

Anybody have experience with this ?

How To Enable Broswer Back And Forward Button On A Flash Site?
Hi all, please take a look at this site http://www.advanceflash.com

If you try navigate around, the url window will change to http://advanceflash.com/#sec_1|schk_xgzg|schc_4|pag_1 etc etc and the back and forword button seem to be working also, if you copy and paste the link, the flash will be smart enough to go to the indivual page also

My question is as below
1) how do we make the back & forward button to work
2) how do we contruct the url to be so dynamic

Any input is welcome!


Thanks

How To Enable Broswer Back And Forward Button On A Flash Site?
Hi all, please take a look at this site http://www.advanceflash.com

If you try navigate around, the url window will change to http://advanceflash.com/#sec_1|schk_xgzg|schc_4|pag_1 etc etc and the back and forword button seem to be working also, if you copy and paste the link, the flash will be smart enough to go to the indivual page also

My question is as below
1) how do we make the back & forward button to work
2) how do we contruct the url to be so dynamic

Any input is welcome!


Thanks

AS - How To Enable Broswer Back And Forward Button On A Flash Site?
Hi all, please take a look at this site http://www.advanceflash.com

If you try navigate around, the url window will change to http://advanceflash.com/#sec_1|schk_xgzg|schc_4|pag_1 etc etc and the back and forword button seem to be working also, if you copy and paste the link, the flash will be smart enough to go to the indivual page also

My question is as below
1) how do we make the back & forward button to work
2) how do we contruct the url to be so dynamic

Any input is welcome!


Thanks

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?

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?

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

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??

(browser) Back Button
Hey guys and gals, I have a flash site, that just uses load movie for every different page... Is there a way to make the back button in the browser actually make the movie go back one?

thanks, kal

Browser Back Button
I'm kinda new at this stuff. Anyone know how to make the browser back button work with my Flash movie?

Browser Back Button
gday , i am trying to make a 'back' button for a series of txt files i have in my movie ...
i have created an array in the first frame with all the names of the files (pages) ..

siteHistory = ["sco1" , "ac01" , "cc01" , "xc01"];
var reportChoice;

on my 'back' button i have ::

on (release) { //go back to menu if on first selection
if ( _root.reportChoice == "sc01" ) {
gotoAndStop("menu");
}
for ( i=0 ; i <= siteHistory.length - 1 ; i++ ) {
if ( siteHistory[i] == reportChoice ) {
reportChoice = siteHistory[i-1];
gotoAndStop("start"); //where my dynamic txt field is
}
}
}

any ideas where i am going wrong cause it dont work , i think maybe it has somehtin to do with actually going to the "start" label ??
cheers !

BROWSER BACK BUTTON?
What gives? I purchased Flash MX with the assumption that named anchors would enable the Browser Back and FWD Buttons. But guess what. . .neither work! I'm going bonkers trying to figure out why it doesn't work. I've used small characters with underscores replacing spaces etc.

I'm operating off of MAC os 9.2. Has anyone heard of a bug prevening the named anchor tag from working properly? Also, I heard an action scritp must accompany the named anchor. . .yet I've found no resource online or from Macromedia to support this. I have a deadline for tomorrow morning. . .I'm drowning!! Please help.

-gwiz78@aol.com-

Browser Back Button
We'll try this once more.........

I've looked through some replies to this subject, but would like a very concise answer, if there is one.

I'd like to know how to control a .swf timeline (moving the timeline position forward & back) by using the browser back button.

In other words, using a browser back button certainly displays previous html pages, but does not return a .swf to the timeline position it was in IN that previous html page.

An example can be seen here. (start using the menu and the browser back button and see the discontinuity) Any help?

Thanks!

Craig

Please HELP Cannot Use Back Button Of The Browser
Whenever I use a Flash movie in my HTML page and view that html page in any browser (IE, Netscape) the Back button of the browser gets struck and i cannot leave that page.

Please HElp anybody

Sukhvinder

Browser Back Button
Is there a way to monitor the browsers back button and affect a variable in a flash movie? I want to know when a user hits the back button and be able to change a variable based on that event.

Browser Back Button
Is there a way to monitor when a user clicks on the browsers back button? What I want to do is be able to change a variable within a flash movie when that event occurs.

Browser Back Button?
Hi There,

About 2 years ago, I went to a flash introduction/presentation of Flash MX.
The guys from Macromedia told that MX has a 'connection' with the browser. The back button in the browser could send you to the previous visited frame within the swf.

Now I looked and looked, but I can't find nothing about it on Flashkit.com.

Is it deleted from the programm or it didn't work?

Can somebody help me?

Best regards,
Blackdoor

Using Browser Back Button?
How can I use this fuction (I think it exists). I just have a simple threeee 4 frame movie with a stop(); on each frame and a simple set of buttons to gotoAndStop each frame. How can I encorporate the browseres back button to tell the flash movie to go back to the last page (frame) displayed?

Browser Back Button
I heard MX can use a browsers back button now to ease navigation. How do I get this to work?

Back Button - In Browser
once the user has gone to another page, and
they click the back button, the browser
redirects to the start of the flash movie.
is there any way to have the user redirected
back to the last place they were at, within the
flash movie. for example, instead of going back
to _root, they are put back to
_root.mc_one.play(5);

i don't need to redirect to a specific spot, but
i would like the user redirected back to the
last section they viewed.
i figured maybe a cookie could do that, but
i was hoping for an easier solution.

any suggestions?

Browser Back Button
Is there a way to tell flash that the brower back button has been hit? I am creating an array in a shared object and when the browser back button has been hit, I am wanting it to go back one in the array. Thank you for any help.

Browser Back Button
I thought I saw how to make the browser back button work on a flash site but now I can't seem to find it. Has anyone ever actionscripted to make the back button on the browser work?

Need A Back Button (not For Browser Use Though)
I am creating a presentation, using Flash MX 2004 on Mac OS 10.4, that will be delivered via .exe and .app.

The presentation is linear but I the user can jump to various locations by pressing keys on the keyboard. What I have not been able to do though is allow the user to go BACK to where they came from.

Example: There are scenes named after people, Bob, Mary and Ted. While viewing Bob you can jump to Ted, skipping Mary. But once at Ted I want to have a button that when clicked takes you to Bob, because thats where the presenter just was.

The presentation is broken into Scenes as major sections.

I found a few codes and tried them all. Currently in use is this:

At the start of the movie:

Code:
navStack = [];
On each important "stop();" (place I want to be able to jump BACK to):

Code:
navStack.push(_currentFrame);
On the Back Button itself:

Code:
on (release) {
if (_root.navStack.length > 1) {
recentFrame = _root.navStack.pop();
previousFrame = _root.navStack.pop();
goToAndPlay(previousFrame);
}
}
Please note that this is not functioning
What is happening when I press this is the movie starts over again. I am lead to believe that it is almost working. Any help is greatly appreciated!

Screenshot for optional Reference.

[F8] Browser Back Button
Does anyone know an easy way to make the browser back button function within a flash movie? I have tried a few tutorials but still can't get this to work.

Thanks.

Browser Back Button
Hi everybody.
Could somebody help me to fix the browser back once in a flash site? I heard that you can either create a landing page for a site or code something in actionscript (or maybe flash prefs?) that will tell the browser back button not to leave the flash site and just navigate as usual. As you know if you don’t do anything, no matter how deep you are in a flash site, the back button will take you out of the site entirely. Since I’ve designed a site with multiple pages, I would like to set this feature up on my site. I’m not sure what this is called, so I hope I’m being specific enough.
Thanks.

Browser Back Button Help..
been looking at getting back browser back buttons to work..
found this.. http://www.asual.com/swfaddress/
not sure on how to use it tho. :S
anyone have any ideas ? or other ways of getting browser back buttons to work.
thanks.. joey

Browser Back Button
Howdy all.

Just wondering, what's the simplest way to get around the back button problem when building a flash-only website?

I've noticed that a lot of flash sites simply open in a new window, which means that the back button is disabled so to speak, but I can't figure out how to do this?

Thanks in advance, any advice is greatly appreciated. And sorry if this question has already been answered! I did look, but to no avail!

Browser Back Button
I'm trying to implement the "Browser Back Button" functionality discussed here:


http://www.actionscripts.org/tutoria...sh/index.shtml


I haven't even gotten to the hard part yet... I'm simply trying to include the following code:


Code:
// -----------------------------------------------------------
// Univeral method for javascript->flash setvariable
// -----------------------------------------------------------
if(!_level0.$jslisten_init){
Stage.$jsvarlistener = new LocalConnection();
Stage.$jsvarlistener.setVariables = function(query) {
var i, values;
var chunk = query.split("&");
for (i in chunk) {
values = chunk[i].split("=");
_root[values[0]] = values[1];
}
};
Stage.$jsvarlistener.connect(_level0.movieid);
_level0.$jslisten_init = true;
}

Quote:




I am getting the following errors when I try to publish:

**Error** Scene=Scene 1, layer=actions, frame=1:Line 5: There is no property with the name '$jsvarlistener'.


**Error** Scene=Scene 1, layer=actions, frame=1:Line 6: There is no property with the name '$jsvarlistener'.


**Error** Scene=Scene 1, layer=actions, frame=1:Line 14: There is no method with the name '$jsvarlistener'.

Total ActionScript Errors: 3 Reported Errors: 3




I have huge gaps in my Flash knowledge base (which may be evident by this question), but I have no idea how to fix this... It appears to be something specific to this project because I am able to plug this code in to, and publish other projects, but I can't seem to figure out what the conflict is here.
I would put up the rat's nest that I have construed (which I loosely refer to as "code"), but you would probably spend more time trying to figure out what I was trying to accomplish than you'd like...so, I'll save you from that! I'm just hoping that it's a simple fix that someone would be kind enough to point out to me...

Thanks in advance!

Browser Back Button
HI, the website is done and uploaded, but when I click on the back button on the browser is no going back to the previous page, it simply starts the movie again. How can I get this issue sorted? Hope you can help.
Thanks so much

Back Browser Button
Hi,
I'm fairly new to flash.
I'm building a site for someone and he wants to be able to use the browser back button to go back to the previous page.
I made the site so that it's contained all in one html page, so you can't do this.
Is there as standard way to build sites? Can I tell him that many flash sites don't have the option to go back? Or should I build each page in a separate html page?
Any ideas?
Thanks!

Back Button In Browser
Hi

I made a flash web page and when i open sub pages on it browser does not recognise that we are deeper on a page than we were on pirst bage thus back button does not work i mean it redirect you on whateever page you were befor entering mine. I understand that is normal considering the way the page was build (everything on one frame) but i wann know how to solve this issue in future. How to build page in flash so that browser will know we are on sub pages. (is it done in code or design) Ho do you do it?

regards

Luka

Browser's Back Button.
Here is an artical on makeing flash MX work with the browser's back button. I tried to do this and had no luck. I was wondering if any one has done this before or knows any thing about it.

I am on a mac if that makes a diffrence.

read about it here

Back Button In Browser
I need to use a back button which brings the site to the last selected MC. Anyone?

Browser Back Button
I've been googling this, looking through the forums here, and working on a solution based on o'reilly's flash hacks with a work around for firefox... but keep coming up against a brick wall. I know it's been done cross platform, and I know it probably requires a lot of code. (e.g. nike.com)

Anyone have a pointer that I may be missing on this? I'm currently working on a solution that uses an html page with an iframe that acts as the history with a javascript changing a variable in the flash movie which listens for the change. I'm close, but I can't get it working consistently. Any thoughts?

I know it can be done with anchors, but that only seems to work in ie. This has to work in all 3 major browsers (firefox(moz), ie, safari).

Thanks in advance.

Browser Back Button
First, this is my first post to the forums, so hello everyone.

Now, my issue: Is there a way to tell flash that the brower back button has been hit? I am creating an array in a shared object and when the browser back button has been hit, I am wanting it to go back one in the array. Thank you for any help.

Browser Back Button
First, this is my first post to the forums, so hello everyone.

Now, my issue: Is there a way to tell flash that the brower back button has been hit? I am creating an array in a shared object and when the browser back button has been hit, I am wanting it to go back one in the array. Thank you for any help.

Browser Back Button
I currently have a "onRelease" set up on a button to go to another url outside of my server. I want the user to be able to click on the browser back button and come back to the page within flash that he was viewing.

Currently it comes back to the index page instead of the current swf they leave on to go to that other url.

Does anyone know of any flash actionscript or java that would make the browser go back to the viewed page?

Browser's Back Button
I've read a number of tutorials on enabling the browser's back button in a fully Flash site (roberts and chris'); the problem is that NONE of them mention if this will work with scenes. I'm a newb when it comes to AS, so please bear with me.

My site was designed using scenes (I know this isn't good, but that's how they did it), so does anyone know if you can still have the browser's back and forward buttons work? What I mean is that I want people to be able to go to different parts of my Flash site and when they hit the BACK button, they won't be taken out of my site...they will simply go back to the previous part of my Flash site.

Site is www.knotwear.com.

Thanks as always.

Disabling The Browser Back Button
Does anyone know how I can disable the back button in a browser? I have a webpage with an embedded flash movie and would prefer not to have to pop-up a seperate window. Any help or suggestions would be greatly appreciated.

'Browser' Back Button In Flash
hey peeps,

Is it possible to have a back button in flash that behaves like the browser back button. I have a route page on a website and you can get to that route page from several locations of the site. But there should be a back buttton that 'knows' from which page you came, and can send you back there.

thanks in advance

sploenk

Browser Back Button (5th Time?)
We'll try this once more.........I've posted this question many time prior; is this one of those things that just isn't possible? Or is it possible noone knows how to accomplish??

I've looked through some replies to this subject, but would like a very concise answer, if there is one.

I'd like to know how to control a .swf timeline (moving the timeline position forward & back) by using the browser back button.

In other words, using a browser back button certainly displays previous html pages, but does not return a .swf to the timeline position it was in IN that previous html page.

Another way of putting it is I would like to utilize the websites visitors browser back button to return to previous html pages with the content of my flash movie 'backing' up in it's timeline to the point in the previous page.

An example can be seen here. (start using the menu and the browser back button and see the discontinuity)

Any help?

Thanks!

Craig

Browser Back Button (5th Time?)
We'll try this once more.........I've posted this question many time prior; is this one of those things that just isn't possible? Or is it possible noone knows how to accomplish??

I've looked through some replies to this subject, but would like a very concise answer, if there is one.

I'd like to know how to control a .swf timeline (moving the timeline position forward & back) by using the browser back button.

In other words, using a browser back button certainly displays previous html pages, but does not return a .swf to the timeline position it was in IN that previous html page.

Another way of putting it is I would like to utilize the websites visitors browser back button to return to previous html pages with the content of my flash movie 'backing' up in it's timeline to the point in the previous page.

An example can be seen here. (start using the menu and the browser back button and see the discontinuity)

Any help?

Thanks!

Craig

Flash - Browser Back Button
Hi Everyone,

Flash super-newbie here. I need to integrate back button browser capability into an entirely flash (or "splash") website. Can anyone please provide the code for this.

What i want is for people to be able to use the back button on the BROWSER to take them to the previous page they visited within the flash movie/website. As opposed to manually inserting back-buttons where i want them.

If its not too much to ask - for those who know how to do this, could you please provide very specific instructions.

Thanx a million..

Program Browser Back Button
I was wondering if it is possible to detect the cleint pressing his web browser back button.

In my case I would want to call a function in my flash movie if the browser's back button was pressed.

------------------
if(ie_back_button == "is_pressed"){ some_function(); }


Thanks in advance for any help.

Copyright © 2005-08 www.BigResource.com, All rights reserved