Hi Galen,

Check out the Alert.show below, it has the confirm type functionality.


Hope this helps!

Derek

private function LogoutAlertClickHandler(event:CloseEvent):void {
               if (event.detail==Alert.YES)
                   applicantService.Logout();
           }

private function ApplicationControlBarLinkBar_ItemClick():void
  {
   switch(String(ApplicationControlBarLinkBar.dataProvider[
ApplicationControlBarLinkBar.selectedIndex]))
   {
    case "logout":
    {

     Alert.show("Are you sure?", "Logout Confirmation", (Alert.YES |
Alert.NO), this, LogoutAlertClickHandler);

     break;
    }

    case "help":
    {
     LaunchHelpPopUp();
     break;
    }

    case "my account":
    {
     LaunchAccountPopUp();
     break;
    }
   }
  }



On 2/26/07, Smallen, Galen <[EMAIL PROTECTED]> wrote:

 Hello,

Is there any way to get the same functionality of the "confirm()" box in
javascript with the "Flex Alert.show()"?

It works ok, but I need processing to halt until the user answers the
question. This is in a form that has been "dirtied".

Also if any one has ideas on doing this better in flex, I am a relative
newbie, open for suggestions.  I want to make sure that if they change the
data, and move on, I can warn them about it.  So far I have the "Save"
button tied to a boolean variable that is updated when changes are made.
This part works fine unless they just leave the page and go somewhere else.

Thanks for any insight.
_________________________________________
*Galen M. Smallen*
Quality Supplier Data Systems
Bell Helicopter/Textron



_______________________________________________
Reply to DFWCFUG:
 [email protected]
Subscribe/Unsubscribe:
 http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
   http://www.mail-archive.com/list%40list.dfwcfug.org/
 http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
 www.HostMySite.com <http://www.hostmysite.com/>
 www.teksystems.com/


_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to