Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6197123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:45:50+00:00 2026-05-24T03:45:50+00:00

I have designed a quiz application in Flex 4. At the end I want

  • 0

I have designed a quiz application in Flex 4. At the end I want to reload my application (that is refresh the page in the browser). At the end I will show score in an alert. After that I want to reload the current application. How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:45:51+00:00Added an answer on May 24, 2026 at 3:45 am

    To cause the refresh to not happen until after your alert is clicked:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   xmlns:s="library://ns.adobe.com/flex/spark" xmlns:local="*" 
                   >
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.core.FlexGlobals;
                import mx.events.CloseEvent;
                protected function refreshClicked(event:Event):void
                {
                    Alert.show("Congratulations you won", 
                        "Hooray!", 
                        Alert.NO|Alert.YES, null, refreshFinish);
                }
                protected function refreshFinish(event:CloseEvent=null):void{
                    if(event == null){
                        event = new CloseEvent("refreshFinish");
                        event.detail = Alert.YES;
                    }
                    if(event.detail == Alert.YES){
                        navigateToURL(new URLRequest(FlexGlobals.topLevelApplication.url), "_self");
                    }
                }
            ]]>
        </fx:Script>
        <s:Button label="Alert and Refresh" click="refreshClicked(event)" />
    </s:Application>
    

    You can remove the option of “NO” by removing it from the or as the 3rd parameter of Alert.show.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have designed an activity in which there is a listView. I want that
I have designed a tabbed page. I'm able to load forms in the tabs
I have designed a new web site. I have hosted it online. I want
I have designed a database whose MDF file will be copied to remote offices,
I have designed a standalone application using swings which can read data from HID
I have designed several animated Panel s in C# that all inherit from one
I have designed the following class that should work kind of like a method
I have designed a long web page and there are many photos in one
I have designed a chat application where different users can create the account, but
I have designed a system that is made up of 3 separate applications: Web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.