I remember responding to this question a week or so ago.

Strangely, the whole thread seems to be gone.

Anyway...

Alert.show("Do you really want to do this?", "Question", Alert.YES |
Alert.NO, this, returnToPreviousHandler);

private function returnToPreviousHandler(event:CloseEvent):void
{
     if (event.detail == Alert.YES)
     {
         navigateToURL(new URLRequest("http://www.example.com/home.html";,
'_self');
     }
}



--- In [email protected], "brucewhealton" <[EMAIL PROTECTED]> wrote:
>
> Hello,
>        I was wondering what the best way to redirect someone in Flex
> would be?  Suppose the user clicks on a link and it takes them to a
> page created in Flex that provides a form.  When they finish, I want
> to return them to the web page where they were or to a home page on
> the site.  How would I do that?
>         Could the redirection to a certain web page be programmed into
> an Alert, so that when they acknowledge the alert and press Ok, they
> go back to where they were?
>           I thought I had asked something like this but I haven't seen
> any messages from me about this matter.
> Thanks,
> Bruce
>

Reply via email to