dcsimg
A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: how to do a exit butten?

  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    55
    what is the "actions frame"? someone can tell me? thank you

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

    fscommand("quit");

  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    55
    Originally posted by oldnewbie

    fscommand("quit");
    it can't work~! i need to close the "macromedia flash player"

  4. #4
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    Originally posted by cbloke
    it can't work~! i need to close the "macromedia flash player"
    what? a browser window maybe?

  5. #5
    Member
    Join Date
    Sep 2001
    Posts
    55
    Originally posted by gSOLO_01
    Originally posted by cbloke
    it can't work~! i need to close the "macromedia flash player"
    what? a browser window maybe?
    e... what do i mean is try to close the "macromedia flash player" browser.

  6. #6
    Lifesaver Lightwave Network's Avatar
    Join Date
    Sep 2002
    Location
    Denver, CO, USA
    Posts
    649
    Okay, one last time:

    In order to close the Macromedia Flash Player, you can use one of the following options:

    If on an IBM/PC:

    1: Click on the little "X" in the top right corner of the window.

    2: Press "Alt + F4"

    3: Press "Ctrl + Q"

    4: Put the script " fscommand("quit") " in a keyframe or button


    If on a Mac:

    1: Chuck your computer out the window of (at least) a 10-story building



    Hope this helps!

  7. #7
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    Originally posted by Lightwave Network
    If on a Mac:

    1: Chuck your computer out the window of (at least) a 10-story building
    no, i'd say at least 12...

  8. #8
    Member
    Join Date
    Sep 2001
    Posts
    55
    Originally posted by Lightwave Network
    Okay, one last time:

    In order to close the Macromedia Flash Player, you can use one of the following options:

    If on an IBM/PC:

    1: Click on the little "X" in the top right corner of the window.

    2: Press "Alt + F4"

    3: Press "Ctrl + Q"

    4: Put the script " fscommand("quit") " in a keyframe or button


    If on a Mac:

    1: Chuck your computer out the window of (at least) a 10-story building



    Hope this helps!
    i have try put the script "fscommand("quit")" in a button but it can't work or still have any way to do it?

  9. #9
    Lifesaver Lightwave Network's Avatar
    Join Date
    Sep 2002
    Location
    Denver, CO, USA
    Posts
    649
    cbloke,


    How well do you understand ActionScripting?


    First, click on your button.

    Then, in the ACTIONS window (where you enter code,) paste the following:

    Code:
    on (release) {
      fscommand("quit")
    }

    That should be all you need.


    P.S. - gSOLO_01, I originally thought a 100-story building would be best, but I didn't want to make any weird 9/11 references.

  10. #10
    Member
    Join Date
    Jul 2002
    Posts
    69
    If you mean for a button within your .swf file that closes the browser window:
    First, did you turn the button image INTO a button? If not, right click on the button, click CONVERT TO SYMBOL, and click off BUTTON. You can name it here too...I usually just leave it as 'symbol' whatever.
    Now, click on the button to highlight it. At the bottom of the screen, click 'ACTION-BUTTON'. Now click INDEX in the menu at the left. Scroll and find GETURL. Double click on it. In the window that opens in the right, where it says 'URL', type in FSCommand:quit
    That oughtta do it. If you mean actually closing Macromedia Flash out, if it's frozen, alt x f4, or rebooting generally works. If that's what you mean though, you haven't spent much time on a computer.

  11. #11
    Member
    Join Date
    Sep 2001
    Posts
    55

    Smile

    fuktifino,Lightwave Network and oldnewbie thank all of you very much, i have done it~! before that i have make some do some wrong scrip.

  12. #12
    Member
    Join Date
    Jul 2002
    Posts
    69
    You're welcome.

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