Row validation with Browser navigation (back button)

I have created two pages for adding/editing rows in a view object (one for the add/edit page and the other for the DataEditComponent page) as per posting:
Re: New user's access to views
Scenario:
* User fills in only part of the form leaving at least one mandatory field blank.
* The form is displayed again with the error message as per the JboException (specifically the AttrValException).
* The user then hits the Back button on the browser to go to some other page that uses a <jbo:RowsetIterate> tag to display the values in some other ViewObject.
* It seems that validation occurs whenever the current row is changed in the framework. So eventhough a different RowSet is being displayed on the other page, the same execption is thrown.
How should this incomplete row that is now in the cache be handled when the user navigates to a different page using the back button.
It is inevitable that the current row will be changed by some other page in the site, so how should "invalid" rows be handled.
I wouldn't be able to assume that other RowSet iteration logic will not affect the current row.
Seems like it would be a problem, whether the new row is created on the DataEditComponent page or on the add/edit page itself, after the form is submitted.
Thoughts?

I have created two pages for adding/editing rows in a view object (one for the add/edit page and the other for the DataEditComponent page) as per posting:
Re: New user's access to views
Scenario:
* User fills in only part of the form leaving at least one mandatory field blank.
* The form is displayed again with the error message as per the JboException (specifically the AttrValException).
* The user then hits the Back button on the browser to go to some other page that uses a <jbo:RowsetIterate> tag to display the values in some other ViewObject.
* It seems that validation occurs whenever the current row is changed in the framework. So eventhough a different RowSet is being displayed on the other page, the same execption is thrown.
How should this incomplete row that is now in the cache be handled when the user navigates to a different page using the back button.
It is inevitable that the current row will be changed by some other page in the site, so how should "invalid" rows be handled.
I wouldn't be able to assume that other RowSet iteration logic will not affect the current row.
Seems like it would be a problem, whether the new row is created on the DataEditComponent page or on the add/edit page itself, after the form is submitted.
Thoughts?

Similar Messages

  • The browser's back button doesn't work for portlet navigation

    I developed a simple portlet that uses webflow navigation to navigate within a
    portlet. I made this portlet visible on a portal's home page. When I view my
    main portal page, the URL is "http://localhost:7501/samplePortal/index.jsp "
    In this page I can see my portlet. When I click on a link inside of the portlet,
    it takes me to the page I want. Then, when I click the browser's back button
    to go back to the previous page(main portal page), it doesn't work. The URL changes
    back to "http://localhost:7501/samplePortal/index.jsp", but portlet itself doesn't
    take me to the previous page. Anybody have any ideas? I am guessing it's because
    the wfevent is null, but how do I resolve this problem?

    Hi Jay,
    I was able to get the back button to work for portals by commenting out the following
    lines in the portal.jsp:
    // prevent caching these pages at clients.
    // response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1
    // response.setHeader("Pragma", "no-cache"); // HTTP 1.0
    // response.setDateHeader("Expires", 0); // prevents caching at proxy
    I also made sure my browser was set to allow the caching of pages.
    You are having problems, because we set the response headers to tell the browser
    to not cache the portal pages, and the portlet state has not changed back to it's
    original state.
    -John Bimson
    "Jay" <[email protected]> wrote:
    >
    I developed a simple portlet that uses webflow navigation to navigate
    within a
    portlet. I made this portlet visible on a portal's home page. When
    I view my
    main portal page, the URL is "http://localhost:7501/samplePortal/index.jsp
    In this page I can see my portlet. When I click on a link inside of
    the portlet,
    it takes me to the page I want. Then, when I click the browser's back
    button
    to go back to the previous page(main portal page), it doesn't work.
    The URL changes
    back to "http://localhost:7501/samplePortal/index.jsp", but portlet itself
    doesn't
    take me to the previous page. Anybody have any ideas? I am guessing
    it's because
    the wfevent is null, but how do I resolve this problem?

  • Having issues with longMessage and back button usage

    Hello,
    I have part of an app that consists of 2 pages. The first page is a set of checkboxes and an Analyze (submit) button. when the user hits Analyze, I commit the transaction and forward to the second page which displays the checkboxes they checked and some other information regarding those choices. If a user wants to change their answers, they use the browser's back button and change their choices, then click Analyze again. This is working fine.
    I now want to add a longMessage to each checkbox above with some additional information about each choice. I've setup these up and they work fine; the dialog box launches just fine when they click the little (i) icon.
    So that's the status quo; here's my problem:
    Scenario
    1. User clicks one of the longMessage icons
    2. clears that box by clicking OK
    3. then hits Analyze to progress to the second page
    4. now user hits browser's Back button to go back to questions
    5. PROBLEM
    At this point, all my checkboxes are blank. If I try to re-check one and hit Analyze, I get an error stating "No current row for View (XXXLProcNavVO1)"
    If I don't ever click a longMessage icon, everything works fine. I can only replicate this if I follow the exact steps in the scenario.
    So what is wrong? Why am I losing my current row in my VO when I use the longMessage?
    I've included my CO from page 1 for reference below.
    Thanks!
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package lanl.oracle.apps.icx.por.req.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    //import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.jbo.domain.Number;
    import oracle.jbo.Row;
    import oracle.apps.fnd.framework.OARow;
    * Controller for ...
    public class LANLProcNavCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("XXXLProcNavVO1");
    if (!pageContext.isBackNavigationFired(false))
    // We indicate that we are starting the create transaction (this
    // is used to ensure correct Back button behavior).
    TransactionUnitHelper.startTransactionUnit(pageContext, "createProcNavForm");
    // This test ensures that we don't try to create a new doc if
    // we had a JVM failover, or if a recyled application module
    // is activated after passivation. If these things happen, BC4J will
    // be able to find the row that you created so the user can resume
    // work.
    if (!pageContext.isFormSubmission())
    am.invokeMethod("initPVO");
    String stringReqHeaderId = pageContext.getParameter("REQ_ID");
    Number defaultReqHeaderId = null;
    try
    defaultReqHeaderId = new Number(stringReqHeaderId);
    catch(Exception e)
    throw new OAException("ICX", "XXXL_INVALID_NUMBER");
    // set this value for subsequent form buttons pressed
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0,defaultReqHeaderId);
    vo.executeQuery();
    if (vo.getRowCount() == 0)
    vo.insertRow(vo.createRow());
    Row voRow = (Row)vo.first();
    voRow.setNewRowState(Row.STATUS_INITIALIZED);
    voRow.setAttribute("ReqHeaderId",defaultReqHeaderId);
    OAViewObject pvo = (OAViewObject)am.findViewObject("LANL838cPVO1");
    OARow prow = (OARow)pvo.first();
    prow.setAttribute("lReqID",stringReqHeaderId);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("XXXLProcNavVO1");
    // Pressing the "Apply" button means the transaction should be validated
    // and committed.
    if (pageContext.getParameter("Analyze") != null)
    // Simply telling the transaction to commit will cause all the Entity Object validation
    // to fire.
    // Note: there's no reason for a developer to perform a rollback. This is handled by
    // the framework if errors are encountered.
    am.invokeMethod("apply");
    // Assuming the "commit" succeeds, navigate back to the prev page with
    // and display a "Confirmation" message at the top of the page.
    TransactionUnitHelper.endTransactionUnit(pageContext, "createProcNavForm");
    // OAException confirmMessage = new OAException("XXXL", "XXXL_PROCNAV_CREATE_CONFIRM", null, OAException.CONFIRMATION, null);
    // Per the UI guidelines, we want to add the confirmation message at the
    // top of the search/results page and we want the old search criteria and
    // results to display.
    // pageContext.putDialogMessage(confirmMessage);
    vo.clearCache();
    vo.reset();
    pageContext.forwardImmediately("OA.jsp?page=/lanl/oracle/apps/icx/por/req/webui/LANLSupplDocSummaryPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackDoc");
    // Indicate that the Create transaction is complete.
    TransactionUnitHelper.endTransactionUnit(pageContext, "createProcNavForm");
    pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/icx/por/req/webui/ShoppingCartPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    }

    Hi
    in this scenarion control is not going inside the condition
    if (vo.getRowCount() == 0) and therefore VO is not getting initialized
    why u are counting the row of VO to initialize the VO ,if possible pls remove this condition check ,problem will be solved .pls let me know in case of any issues.
    thanx
    Pratap

  • Session state and browser cache - Back button problem

    Hi all,
    I have a problem (and unless I'm missing something I think we all do) with session state and use of the browser's Back button. I really hope I'm just being dumb...
    Background scenario:
    Page P has a sidebar list allowing the user to select what content is displayed (e.g. 'stuff relating to X, Y or Z' where X, Y and Z are rows in, say, a table of projects). When a list entry is clicked, we branch to page P with the value of the list item placed in an application-level item (call it G_PROJECT). Reports on page P use G_PROJECT in their WHERE clauses.
    So, click list entry X and G_PROJECT is set to X and page P shows reports for project X.
    Page P also has a set of buttons which branch to various edit pages which allow attributes of page P's current project to be updated. These pages similarly use G_PROJECT in their WHERE clauses.
    Problem scenario:
    1. The user goes to page P and picks project X off the list. Project X's stuff is displayed (G_PROJECT = X).
    2. The user then picks project Y off the list. Project Y's stuff is displayed (G_PROJECT = Y).
    3. The user then clicks the browser's Back button. The page is served from browser cache, so project X's stuff is displayed, but G_PROJECT still = Y.
    4. The user clicks an 'Edit' button; we submit, and branch to an edit page which displays (and will edit) data for project Y because G_PROJECT still = Y.
    This is SERIOUSLY BAD NEWS - apart from being confusing, the user's edit permissions on projects X and Y may differ, and so the user may be able to perform 'illegal' updates.
    I've read what I can on this forum and the rest of the web looking for ways to a) inhibit browsers' 'Back' functions and/or b) prevent pages being cached by the browser, but none of them have worked for me.
    Short of waiting for browser manufacturers to recognise that the web is now full of applications as well as static pages, and enable robust programmatic control of cache behaviour, does anybody know how the problem can be avoided - or at least detected?
    Thanks,
    jd
    Failed attempts to date:
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="cache-control" content="no-store">
    <meta http-equiv="cache-control" content="private">
    <meta http-equiv="cache-control" content="max-age=0, must-revalidate">
    <meta http-equiv="expires" content="Wed, 09 Aug 2000 01:01:01 GMT">
    <meta http-equiv="pragma" content="no-cache">
    Disallowing duplicate submission (page attribute).
    window.history.go(1);

    Thanks Scott,
    I may be being dumb here but I don't see how that would help...
    P250_PROJECT and G_PROJECT are currently kept in sync by app logic. Whichever is used to drive, if the page is rendered from cache then the app logic is not executed, so the rendered page contents are not those keyed by P250_PROJECT, as illustrated in steps 1-4 of the problem above.
    The user sees X, the session items say Y. The engine doesn't know what the user is seeing.
    when page P is POSTed, its hidden item P250_PROJECT should always be used to derive the application item G_PROJECT. Then whether the page was pulled from cache or rendered anew via a click from the sidebar link, the project ID is determined by the contents of that page.
    As I said above I tried this, with the 'Edit' branch set to:
    Set these items: G_PROJECT
    With these values: &P250_PROJECT.
    but it makes no difference. The project ID is not determined by the rendered page contents - the engine gets the value of P250_PROJECT from session state.
    I can code the 'Edit' pages such that they check permissions and if necessary redirect back to p250 (conditional before-header branch), but that's a clunky cure rather than the prevention I was hoping for.
    Please tell me if my understanding is incorrect.
    jd

  • When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    see -- http://kb.mozillazine.org/Kill_application
    which explains how to completely exit (quit) your Mozilla application
    Try closing Firefox completely
    *Close Firefox properly '''File > Exit''', not with the "X" which just closes the window.
    *Use the Windows Task Manager "Processes" tab to make sure that firefox.exe is not running and also that the plugin-container.exe is not running.
    If that does not work, try restarting the system.
    If still no luck try restoring bookmarks from last backup, or better create your own .json backup and restore from that.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox#Creating_bookmark_backups
    *''If you had to go this far, please provide feedback if restoring bookmarks alone fixed the problem. I think I may have done that once with success, but never see that suggested -- I'd try most anything to not lose history or bookmarks. But then I could restore files from my profile and restore latest bookmarks backup from current profile.''
    The following will result in complete loss of history if it comes down to deleting places.sqlite, so rename files rather than deleting. With Firefox down.
    Of course you have backups of your profile you could replace rename and
    replace those files instead.
    Locked or damaged places.sqlite - MozillaZine Knowledge Base
    :"Toolbar buttons such as Back/Forward are disabled "
    :http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • How to get login page when user clicks on browser's back button

    Hi,
    I am using struts framework.
    I have set property nochache=true in response header of all pages.
    So, browser does not caches my pages.
    Now,when I am clicking on browser's back button, I am getting following message..generated by browser.
    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button.
    Instead of that I want to show user a login page, when it clicks on back button.
    Can anyone help me?

    Hi,
    I agree with your suggestion.But my query is,
    If you have seen many credit card or banking websites,generally when user clicks on browser's back button,its redirectly user to login page of it for security reasons.
    I want to implement that kind of functionality.So need help on that point

  • How to redirect to a different page when a browser's Back button is clicked

    In my application a user logs-in and searches on the form provided. Now
    If a I click on browser's Back Button I see a message saying Page Has Expired, now at this point if I click on the browsers refresh button it shows me the page again.I want if browser back button is clicked and then Refresh button is clicked I don't want to show the same page rather redirect to a different page and invalidate the session. Is there a way clicking on browser back button I redirect to a different page.I have the following code on top of each jsp pages:
    response.setHeader("Cache-Control","no-cache"); //forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibilityAny help is appreciated. Thanks

    There's no way to know when the back button is clicked, so I don't see how you can do anything about it. Since that message comes from a page which was created by a POST form submission, you can put some unique value in a hidden field that let's the server side record and if it gets it again (from the reload) then it can ignore the form data and redirect.

  • Disable/hide navigation Back button in particular overview page

    Hi All,
    I have to disable/hide navigational 'Back' button on Task overview page. I tried to achive this in WD_HISTORY mehtod but no luck.
    Please suggest me how to do this.
    Thanks,
    Nanaji

    Hi Laxmana,
    I did the same thing as you suggested, by commenting the super class method we can just stop to go to previous page but not all the pages which are stored in back button history.
    My actual requirement is, back button should not be visible to user or should not function anything. User should not use back button to navigate away. user must use 'save and back' or 'save' buttons.
    Thanks,
    Nanaji

  • Issue with Safari's back-button, swipe, and scrolling

    After installing the recent security and iTunes update (12.0.1) I installed this morning, I've noticed that Safari's back-button, back mouse-swipe, and mouse scrolling will stop working on occasion. When this happens I can open a new tab or restart the browser and things are OK for a while. Safari's keyboard controls continue work when this happens. Mouse controls in other apps are fine.
    I'm running:
    - OS X 10.9.5 (13F34)
    - MacBook Pro, 13-inch, Early 2011
    Any ideas?

    The site you visited (with the trailer in it) uses a redirect script. When you hit the "Back" button, you are going back to the redirect page, which then redirects you back to the trailer, lol! What you want to do is to press and hold down the "Back" button, then go back two (sometimes more) pages and avoid the redirect.
    It's a common occurrence on many sites. It's not a Safari glitch. I agree it is annoying.

  • Disabling browser forward & back buttons

    Does anyone know how to disable those 'windows/browser' forward and back buttons next to the arrows on the T510 with win 7 x64?
    I know older thinkpads had software to modify the keyboard, i'm not seeing any options here.
    I find those keys to be somewhat annoying -- i've already lost work by accidentally tapping them.
    thanks!
    Solved!
    Go to Solution.

    Have a look here:  http://forum.notebookreview.com/showthread.php?t=4​69665  I think that utility might do the trick!
    ThinkPad T510 : i5-540M : 8GB PC-10600 : 500GB 7200rpm : 15.6" HD+ : Intel 6300 : Win7 Pro 64 : 9Cell
    Ordered 2/Feb/2010 : Shipped 22/Feb/2010 : Received 3/Mar/2010

  • Had problem with bookmarks, history, back button and google links not working.

    For the last five days i've had problems with firefox. First, i noticed that it was running incredibly slowly and then that all the links in the google search were not working. Then i noticed that neither was the history, bookmarks or back button. I went on to facebook chat to ask for help. First, I was told to reinstall firefox, which didn't work. Then i was told to do a "clean" install where you rename the old firefox folder in the programs folder so that it makes sure when it's installed that everything is new and nothing is corrupted. That didn't work either. I then disabled my antivirus software and firewall to see if that was causing the problem. It was not. Then I installed an anti-malware program to remove any adware or spywar,e which it did remove from my computer, but it didn't solve the problem. The chat person was at a loss and I don't blame him/her because so was I.
    The reason I'm writing this is in case anyone else has the same problem. The only way I solved it was first by uninstalling and making sure to check the little box asking if you want all personal data and such associated with firefox also removed (which removes cookies as well) and then I finally thought to delete all the cookies from the rest of my computer also. Once all the cookies were gone and i had fully uninstalled firefox and personal data, I reinstalled it with a newly downloaded file and it is once again functioning properly. Hope this is helpful to anyone who's been ripping their hair out. :)

    '''I have the same problem!!
    But in my case, not just Google links.
    The problem happens with all the websites links.
    Please...
    Help us!!
    Thnx'''

  • How to use Spry validation with link styled submit buttons..??

    I'm working with a theme package that comes with a bunch of button styles that work with basic links.  For example:
    <a href='page.html' class='small-button smallblue'><span>Button Label</span></a>
    I've got a basic form setup with Spry validation, but the submit button needs some styling to make it look nice with the site.  Since there are already styles ready for me to turn links into buttons I figured I'd use the same thing for my submit buttons.
    To accomplish that, I'm using the following javascript...
    <script type="text/javascript">
    function submitForm() {
        document.getElementById("form_name").submit();   
    </script>
    And then I'm updating my submit button to something like this...
    <a href='javascript: submitForm()' class='small-button smallblue'><span>Button Label</span></a>
    When I do this, the form submits as expected, but the Spry validation doesn't work.  Is there a way I can make the Spry stuff work with these types of buttons?  I know I could create separate styles for the submit buttons themselves, or I could use an image type button, but I'd really like to figure out how to get these existing styles to work for me since the theme already has so many of them done for me.
    Any information on this would be greatly appreciated.  Thanks!

    Save yourself a lot of trouble and style the normal submit button as per
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <style>
    .Standout {
        font-family: Geneva, Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        color: #FFFFFF;
        font-size: 16px;
        background-color: #CC0000;
        font-weight: bold;
        border-style: none;
        padding-top: 6px;
        padding-bottom: 5px;
        padding-right: 64px;
        padding-left: 64px;
        letter-spacing: 1px;
    .Standout:hover {
        background-color: #000000;
    </style>
    </head>
    <body>
    <form action="" method="get" name="myform">
      <span id="sprytextfield1">
      <label for="text1"></label>
      <input type="text" name="text1" id="text1">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="input" type="submit" class="Standout">
    </form>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"]});
    </script>
    </body>
    </html>
    Gramps

  • [iPhone] Invisible Navigation Back button item?

    I'm a little perplexed on this one. I've started a project based off the Navigation Controller template in Xcode, which is table based, and I push a view controller onto the stack, it shows up just fine.
    The problem is, after this new view is pushed, there's no Back button in the navigation Bar. Well, not visible at least. If I click on the navigation bar on the left side, where the Back button should be, it goes Back! But I can't figure out why it's not showing.
    There's a property like self.navigationItem.hidesBackItem or something like that, but setting it to NO had no effects.
    Anyone?

    Aha!
    You nailed it. Problem solved. And I guess that makes sense, the Back button I guess is derived from the title of the previous view (seems to me though it should have some default value like "Back").
    Thanks so much
    JB

  • Help with making a back button

    hi
    in a game im making i have a start menu that then when you click play goes to the game after playing the game, when you die a game over screen appears with a play again button in it i want to put a back button to go to the first frame.
    the way this is set up is that the game over menue is a movie clip with the play again button in it i want to have a back movie clip to make it go to the first frame
    gotoAndStop(1) dosent seem to work or mabye i am doing it wrong
    this my game class file as the game over menu does not have a class file:
    package com.alienattack{
              import flash.display.MovieClip;
              import flash.events.Event;
              import flash.utils.Timer;
              import flash.text.TextField;
              import flash.text.TextFormat;
              import flash.display.Stage;
              public class Game extends MovieClip          {
                        static var ship:MovieClip;
                        static var enemyShipTimer:Timer;
                        static var scoreText:TextField;
                        static var score:Number;
                        static var healthMeter:HealthMeter;
                        static var enemyHealthMeter:EnemyHealthMeter;
                        static var gameOverMenu:GameOverMenu;
                        static var powerUpTimer:Timer;
                        static var miniBossTimer:Timer;
                        static var RocketShipTimer:Timer;
                        var bossCountdown:Number;
                        static var Bombtimer:Timer;
                        private var _stage:Stage;
                        static var backgroundMusic = new BackgroundMusic();
                        var Bullet;
                        public function Game(){
                                     this.addEventListener(Event.ADDED_TO_STAGE,init);
                        function init(e:Event):void{
                                  _stage=stage;
                                  KeyClass.initialize(stage);
                                  stage.focus = this;
                                  ship = new Ship();
                                  ship.x = 300;
                                  ship.y = 150;
                                  _stage.addChild(ship);
                                  enemyShipTimer = new Timer(2000);
                                  enemyShipTimer.addEventListener("timer", sendEnemy);
                                  enemyShipTimer.start();
                                  RocketShipTimer = new Timer(3500);
                                  RocketShipTimer.addEventListener("timer", sendEnemyRocket);
                                  RocketShipTimer.start();
                                  resetScore();
                                  gameOverMenu = new GameOverMenu();
                                  gameOverMenu.x = 0;
                                  gameOverMenu.y = 0;
                                  addChild(gameOverMenu);
                                  gameOverMenu.visible = false;
    gameOverMenu.playAgainButton.addEventListener("mouseDown", newGame); (this is where i think the play again button is but how would i make it so it when to the first frame)
                backgroundMusic.play(0,1000);
                        static function gameOver()
                                  gameOverMenu.visible = true;
                                  enemyShipTimer.stop();
                                  miniBossTimer.stop();
                                  RocketShipTimer.stop();
                                  Bombtimer.stop();
                                  powerUpTimer.stop();
                                  for (var i in EnemyShip.list)
                                            EnemyShip.list[i].kill();
                        function newGame(e:Event)
                                  gameOverMenu.visible = false;
                                  ship.visible = true;
                                  ship.x = 300;
                                  ship.y = 150;
                                  ship.takeDamage(-ship.maxHealth);
                                  ship.addEventListener("enterFrame", ship.move);
                                  resetScore();
                                  enemyShipTimer.start();
                                  miniBossTimer.start();
                                  RocketShipTimer.start();
                                  Bombtimer.start();
                                  powerUpTimer.start();

    hi
    i make a new function back and change the new game to back but the screen does not go to the first frame
    gameOverMenu.backbutton.addEventListener("mouseDown", back);
    function back(e:Event)
                                  gotoAndStop(1);
    any help?

  • I have ho browser,no back button or search box; how do I get them; I've downed the program twice.

    I had firefox. I added babel and your toggle for pop-ups
    I took off a google toolbar
    My browser, back button, and search box vanished.

    * In Firefox 3.6 versions on Windows and Firefox 4 on Windows and Linux it's possible to hide the "Menu Bar" via "View > Toolbars" or via the right-click context menu of a toolbar.
    * Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    * Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also:
    * [[Menu bar is missing]]
    * http://kb.mozillazine.org/Toolbar_customization

Maybe you are looking for

  • My iPhone 3GS wont open Apps or e-mail and I cannot MMS pictures from my camera

    My iPhone 3Gs has stopped opening my App Store application and iTunes application.  When I open the camera and try to MMS a picture it returns to the home page.  When I open my e-mail it will show me the inbox page but when I try to open a specific e

  • Squeaky wheel may get the most grease

    To Verizon customers using this Forum: I've learned that if you do not open a trouble ticket or post in this forum everytime you have a problem with your phone service, you are not believed when you tell Verizon support that your phone service is con

  • Newcomer needs help:)

    HI everyone, I just decided to learn SQL, I am completelly green, no doubt. I checked some utube videos, where people were using Microsoft visual studio, then Oracle express edition. As I understand (may be wrong) both are used to write queries, if s

  • FRM-40403

    FRM-40403 A calling form has unapplied changes. Save not allowed. I do not understand why the above message occurs when the CALLING form is performing an UPDATE but NOT when it is performing an INSERT. I have seen documented (cannot remember where) t

  • What software is for drawing animation?

    does anyone know what software is used for drawing animation?.I tried adobe flash cs3 which was siad to be the animation software used for eddsworld a youtube hit.I want to make something like eddsworld but adobe flash cs3 wont come up when I search