Back button Script

Still looking for a script for a back button that will take
the user back to where the previous button was clicked. I've had a
suggestion that used a variable but I haven't got a solution
yet.

that's the best you're going to get because it's the only way
for a back button to work in flash. that is, you must store
something (usually the frame number) that indicates the current
frame, at all frames to which you may want to return, in a variable
that can be used to retrieve that frame reference after you leave
that frame.

Similar Messages

  • How can we prevent back button  using java script

    how can we prevent back button using java script

    Would be quicker for you to google for javaScript
    javascript:window.history.forward(-1);

  • Making a Browser BACK button in Java Script

    I've been trying to create a Browser Back button to return the user back to my LMS.  They typical ones I've found on the internet don't seem to work or I'm not entering it into Lectora properly.  Has anyone succussfully created a BACK button in Captivate?
    Using Captivate 3.
    One code I've tried that won't work:  <a href="javascript:history.go(-1)" </a>

    Hi there
    This could be an issue with Flash Player Security as described in the link below.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How do I use edge commons composition loader to load multiple compositions with a next and back button?

    I am working on an interactive book and have set up each page as a separate composition in edge.
    I am using  the edge commons JS library to load multiple compositions into a main composition.
    You can see how this works here: Edge Commons - Extension Library for Edge Animate and Edge Reflow | EdgeDocks.com
    The way the edge commons tutorial is set up requires a button for each composition i want to load. I am interested in loading multiple compositions with a "next" and "back" button, and a "swipe left, "swipe right" gesture on the content symbol that each composition is loaded into. I also need the swipe features on the content symbol not to interfere with the interactive elements on the loaded composition.
    Please suggest a solution that will work without adding additional scripts beyond edge commons and jquery.

    Sort of. I'm using this code inside an action for a button symbol. But it doesn't work perfectly. Trying to debug it.
    Let me know if you have any luck.
    //Check to see if pageCounter already exists
    if (typeof EC.pageCounter === 'undefined') {
      // it doesn't exist so initialize it to first page
        EC.pageCounter = 2;
    //check if the page is only 1 digit -- patch for single digit
    if (EC.pageCounter < 9) {
       // it is, so we need to pad a 0 on the front.
      EC.pageCounterString = "0" + EC.pageCounter;
      //e.g.  01 ...09,11,12,13....115,222352,,....
    else {
      EC.pageCounterString = EC.pageCounter;
    EC.loadComposition(EC.pageCounterString + "/publish/web/" + EC.pageCounterString + ".html", sym.$("container"));
    EC.pageCounter = EC.pageCounter + 1;
    //TODO for back  -1

  • Problems with Next and Back Buttons ActionScript 3.0

    Hi,
    I have set up a Back, Play and Next buttons in a slideshow I am making.  The next and back buttons work correctly until it gets to the end. 
    If I press the Next button it goes back to what appears to be Frame 1 and will not go to the next slide. If I press the Back button it will then go to Frame 201 and If I press next again it will go to Frame 1.  It will only go back and forth in between those frames.
    If I press the Back button from the beginning it goes through the slide show correctly then it gets stuck at Frame 1.  If I press next button it goes to Frame 121 and gets stuck in between 121 and 1.
    I can't figure this out please help.
    My code on Frame 1 is:
    stop();
    play_btn.addEventListener(MouseEvent.CLICK,playslideshow);
    function playslideshow(event:MouseEvent) { gotoAndPlay(2); }
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);
    function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
      gotoAndStop(40);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_8);
    function fl_ClickToGoToAndStopAtFrame_8(event:MouseEvent):void
      gotoAndStop(281);
    My code on Frame 40 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_7);
    function fl_ClickToGoToAndStopAtFrame_7(event:MouseEvent):void
      gotoAndStop(121);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
    function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void
      gotoAndStop(1);
    My code on Frame 121 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_3);
    function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
      gotoAndStop(201);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_10);
    function fl_ClickToGoToAndStopAtFrame_10(event:MouseEvent):void
      gotoAndStop(40);
    My code on Frame 201 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);
    function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void
      gotoAndStop(281);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_11);
    function fl_ClickToGoToAndStopAtFrame_11(event:MouseEvent):void
      gotoAndStop(121);
    My code on Frame 281 is:
    forward_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
      gotoAndStop(1);
    back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_12);
    function fl_ClickToGoToAndStopAtFrame_12(event:MouseEvent):void
      gotoAndStop(201);

    I found the solution!  Flash CS5 Tutorial 6 Click On Button Go To Another Frame.avi - YouTube
    I had to Convert to Keyframes each frames I wanted to jump to on the buttons layer.  Then highlight the button and give each another instance name! Like forward1_btn, forward2_btn, back1_btn, back2_btn...  I did that and adjusted the action-script for each button.
    Frame 1
    stop();
    play_btn.addEventListener(MouseEvent.CLICK,playslideshow);
    function playslideshow(event:MouseEvent)
    gotoAndPlay(2);
    forward1_btn.addEventListener(MouseEvent.CLICK, Shoot_1);
    function Shoot_1(event:MouseEvent):void
      gotoAndStop(40);
    back1_btn.addEventListener(MouseEvent.CLICK, Back_1);
    function Back_1(event:MouseEvent):void
      gotoAndStop(281);
    Frame 40
    forward2_btn.addEventListener(MouseEvent.CLICK, Shoot_2);
    function Shoot_2(event:MouseEvent):void
      gotoAndStop(121);
    back5_btn.addEventListener(MouseEvent.CLICK, Back_5);
    function Back_5(event:MouseEvent):void
      gotoAndStop(1);
    And so on...

  • Is it possible to invalidate session when I click my browsers back button

    Hai
    I have a question.
    I am building a jsp page with multiple forms.As of now,
    no login system has been implemented.
    I need my session to time out when the client click on the back
    button on the browser to prevent data corruption.
    Is there a possible way to do this in Java/ Script
    I know the use of session.invalidate() but how to tie it up to the
    browser's back button
    A second problem
    If I use session.invalidate() on Tomcat 3.2
    I find that it is not invalidated.But this same function on tomcat 4
    doesn't have any problem
    Could anyone help on these issues
    Thanks

    You don't mean you want to invalidate session every time you move to a new page, do you? If you do, after implementation of login system the users will be asked for passwords at each page. If you don't, it's better to use headers for your response.
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Expires", "-1");

  • When I click on a result of a Google search and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results.

    When using FF3.6 and making a Google search, when I click on a result and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results without going to History. This does not happen all the time; about 1/2 of the time.
    This problem is not limited to Google, but occurs with other sites as well.

    If you are talking about searches from - http://www.google.com/ - are you logged into a Google account all the time? If so, check your "Search Settings" from the "gear" in the upper-right corner of that Google search page and see if you have '''Open search results in a new browser window.''' check-marked, at the bottom of that preferences page. When that is check-marked and you have Tab options in Firefox set to '''Open new windows in a new tab instead''', you will get search results always opening in a new tab instead of the same tab. As to why that works different for "sponsored links" I don't know, I haven't seen the "sponsored links" for years now, I have a GM script that blocks those advertisements.

  • Firefox was a good, but now it's slow and when I search google I have to refresh the page when I click the back button. This is driving me to other browsers.

    When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.

    Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
    * Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
    * Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
    * Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
    Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
    For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
    (3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
    This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen].

  • How to get the back button if we to go the 2nd drill down report??

    Hi,
    I have a drill down report for the main report. And have detailed drill down as in 1st report>2nd report>3rd report.
    But once i goto drill down, the return button is there which directs to main report i.e. 2>1,
    But once i goto 3rd, i do not get the back button so that i can access reports in 3>2>1, instead its going directly to 1st from 3rd.
    hope i have made the point clear.
    Someone suggest me how do i get the back button??
    Thanks!!

    use the below code in Narrative view
    <script&gt;
    function goBack()
    window.history.back()
    </script&gt;
    <input type="button" value="Back" onclick="goBack()"&gt;
    If helps mark
    Edited by: Srini VEERAVALLI on Feb 13, 2013 12:08 AM

  • Making sure you can't use back button to go back to a secure page

    I am wondering how I can go about ensuring that the user of my application can not use the back button to go back to a secure page after leaving it.
    What is the easiest way to implement this added security?
    Thank you.

    I think the easiest way would be to put in a javascript that opens a page of your choice (such as the home page of a site, for example) and another javascript that closes the browser window. You can get the new window script by clicking here. I'm not sure about the close browser window javascript, but I know that there is a close browser (kills the whole browser, and all the open windows) available here, but that may be a bit overkill. I think you could redo the javascript on the first one so it says something like close_window , but I'm new to javascript and wouldn't know for sure...
    Hope this helps!

  • How to work with Back Button of Web Browser for Flex Application

    Hi...........
    I am developing a Web Site for that I have created 10 MXML Components for 10 links I am using ViewStack in Home Page and I added the 10 components to this ViewStack and I am using 10 links for 10 Components
    My problem is that When I am going through links it's fine but in my Web Browser I am not getting Back Button enabled for previous page to go
    Please help me.............................. 

    Hi,
    Here a Flex3 example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         creationComplete="initApp()">
         <mx:Script>
              <![CDATA[
                   import mx.events.BrowserChangeEvent;
                   import mx.managers.IBrowserManager;
                   import mx.managers.BrowserManager;
                   import mx.utils.URLUtil;
                   public var browserManager:IBrowserManager;
                   private function initApp():void {
                        browserManager = BrowserManager.getInstance();
                        browserManager.addEventListener(BrowserChangeEvent.BROWSER_URL_CHANGE, parseURL);
                        browserManager.init("", "Shipping");
                   private var parsing:Boolean = false;
                   private function parseURL(event:Event):void {
                        parsing = true;
                        var o:Object = URLUtil.stringToObject(browserManager.fragment);
                        if (o.view == undefined)
                             o.view = 0;
                        tn.selectedIndex = o.view;
                        browserManager.setTitle((tn.selectedIndex == 0) ? "Shipping" : "Receiving");
                        tn.validateNow();
                        var details:Boolean = o.details == true;
                        if (tn.selectedIndex == 0)
                             shipDetails.selected = details;
                        else
                             recvDetails.selected = details;
                        parsing = false;       
                   private function updateURL():void {
                        if (!parsing)
                             callLater(actuallyUpdateURL);
                   private function actuallyUpdateURL():void {
                        var o:Object = {};
                        var t:String = "";
                        if (tn.selectedIndex == 1) {
                             t = "Receiving";
                             o.view = tn.selectedIndex;
                             if (recvDetails.selected)
                                  o.details = true;
                        } else {
                             t = "Shipping";
                             o.view = tn.selectedIndex;
                             if (shipDetails.selected)
                                  o.details = true;
                        var s:String = URLUtil.objectToString(o);
                        browserManager.setFragment(s);
                        browserManager.setTitle(t);
              ]]>
         </mx:Script>
         <mx:TabNavigator id="tn" change="updateURL()" width="300">
              <mx:Panel label="Shipping">
                   <mx:CheckBox id="shipDetails" label="Show Details" change="updateURL()" />
              </mx:Panel>
              <mx:Panel label="Receiving">
                   <mx:CheckBox id="recvDetails" label="Show Details" change="updateURL()" />
              </mx:Panel>
         </mx:TabNavigator>
    </mx:Application>

  • Back Button: Screens

    Im in the middle of a flash website and im using screens to
    design it..
    Im trying to create a simple back button on the main screen
    so that It acts as a simple back button..
    pretty much I want it to go back in history 1 screen.. I dont
    want to its parrent screen, I would want it to act like a simple
    back button that is commonly used in html.. is there a script I can
    add to a button? how would I do this?
    none of the prevscene commands or the preve screen commands
    work because they simple go to the current slide's parrent.. I need
    help ASAP, so if you know how to do this please respond

    help please!

  • Back button doesn't work due to multiple history entries for the current page. How can I fix this problem?

    This problem started February 2015. I have noticed it mostly while searching ebay. When I hit the back button it did not work. I right clicked the back button and found at least 2 and sometimes up to a dozen duplicate history entries for the current page I am on, meaning I would have to click the back button a dozen times to get to the previous page. I am using Firefox 35.0.1 on a Vista computer. I have not found any fix for the problem after searching the internet for hours. I have seen similar issues with people using IE and some say the duplicate entries are caused by banner ads but still no one has provided a good answer or fix for the problem. Please help.

    I will leave further answers to users of ebay. Script or adblockers may ease the problem.
    * Try this add-on search [https://addons.mozilla.org/en-US/firefox/search/?q=blocker&platform=windows&appver=35.0&sort=users blocker] (Windows)

  • Authenticate when user clicks back button after logging out

    Hi All,
    Is there a way that the user can be forced to authenticate, if he has just logged out, and then clicks the back button.
    I have a situation where a user who is working on relatively sensitive data logs out (yeees they should close the browser and all, but they never obey instructions... ) and someone else can come around and click the back button, and see what what he had been working on.
    Is there a way to disable this behaviour, or otherwise force a reload/re-authentication.
    Thanks.

    Hi there,
    You can accomplish this by writing this code in each page of your application
    Write this in your html header:
    <script type="text/javascript">
    javascript:history.go(1);
    </script>and write this in Page HTML Body Attribute:
    onunload="javascript:history.go(1)";It will not allow your users to go back.
    Thanks
    Tauceef

  • Multiple Video Tracks Problem with Back Button

    Hi,
    I am making a DVD that has to contain 16 films. Unfortunately the videos don't have the same aspect ratios, so I have to create one video track for each film.
    When the DVD is started they are supposed to play all in a row (no menus). So the end action for each track is to jump to the first chapter of the next track.
    My problem is that once I am playing, say, track 5, there is no way to get back to track 4 with the "back button" on the remote control.
    Do I have to script this? And if yes, how?

    That is exactly my problem. Chapter markers only work on the same track, for some reason you can't jump to a chapter in a different track. What I need is a solution to jump from a track to the previous one when pressing the back button on the remote.
    As I wrote before I can't use just one track for all films, because they have different aspect ratios.
    Message was edited by: schmiddl

Maybe you are looking for

  • Can I upgrade my processor on dv6835nr laptop

    my laptop is 5 years old and I love it! Last July, the hard drive crashed; I replaced it, and reinstalled Vista OS.  Later upgraded to Windows 7..now I find it takes longer to "open" anything. How can I tell if I need to update or upgrade any other c

  • Premiere Pro CS6 serious error has occurred, crash troubleshooting

    ERROR MESSAGE: Sorry, a serious error has occurred that requires Adobe Premiere to shut down. We will attempt to save your current project Problem: Starting last night Premiere would crash with this error message. This has been happening increasingly

  • BADI for Foreign Trade Data(EIKP)

    Hi , I need to update/change Foreign Trade Data(EIKP) during Invoice creation. I would just like to ask if any of you have used a BADI for Updating values for  Foreign Trade Data during Invoice Creation (VF01). Thanks! Donna Edited by: Donna Cherr Ma

  • IMessage will not activate

    I have had the iPhone 4S for about a month and all of a sudden, I stopped receiving texts from certain contacts. I noticed that my iMessage was "Waiting for activation" and when I tried to turn it off then turn it back on, I received the error messag

  • Won't start up, gets to the avi exporter on startup and crashes

    Everything was working fine, then I went and downloaded a shareware video converter to convert mov files to avi, now elements 8 won't start up.  It goes through the startup process, and when it gets to starting loading exporter AVI.prm it crashes eve