A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: confirmation of exit

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    8

    confirmation of exit

    hi guys i have a flash interface designed in MX 2004, i currently have an exit button coded with fscommand to quit. the problem i have is that i would like flash to pop up a box when the exit button is pressed to then ask 'are you sure you wish to quit?' if no selected for flash to continue as normal but if yes selected for both the pop up and the flash projector to close.

    thanks in advance

  2. #2
    Running Plodding & Limping SpockBert's Avatar
    Join Date
    Jun 2002
    Location
    London
    Posts
    593
    Have your button make a movieclip appear on top of all the other content.

    Then in that movieclip, have the text:

    "Do you really want to exit?"

    with 2 buttons "no" and "yes, let me out"

    on the "no" button, make this movieclip go away.

    then on the "let me out" button put your fscommand quit code:

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Posts
    8
    sorry if this sounds dumb, but by opening a new flash movie, when you click 'yes' to exit wont flash then need to close 2 windows? the interface window and also the close option window, how would this work? obviously if the user clicked 'no' then i would just use fscommand to quit the current window

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    He was talking about a Flash "popup" (a movie clip within the Flash movie itself... Not a browser popup...), that would definately disappear if you did closed the projector...

    Read his post again...

  5. #5
    Junior Member
    Join Date
    Mar 2005
    Posts
    8
    ah yeah i see what you mean, just me being stupid thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center