A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Quit button for standalone.

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    9

    Quit button for standalone.

    Yes, I'm a meganoob.

    I'm using flash8 and I've tried this :

    quit_btn.onRelease = function ()
    {
    fscommand(quit);
    }

    And loads of other things (on seperate frames and on the button), but I can't get it to work.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    fscommand("command", "parameters")

    command A string passed to the host application for any use or a command passed to the stand-alone Flash Player.

    parameters A string passed to the host application for any use or a value passed to the Flash Player.

    fscommand("quit");

  3. #3
    Junior Member
    Join Date
    Jun 2007
    Posts
    9
    That didn't work ( I put it in a seperate layer, Heres the code:
    stop();
    again_btn.onRelease = function(){
    gotoAndPlay(2);
    }

    quit_btn.onRelease = function ()
    {
    fscommand("quit");
    }

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    hmmm.. i cannot get it to fail
    i have a button on the main timeline with instance name - btn
    i have the Publish settings set to Windows Projector (.exe)

    code on my button is -

    btn.onPress = function(){
    fscommand("quit");
    }


    i test the .exe file on my HD, press the button and the .exe file quits

  5. #5
    Junior Member
    Join Date
    Jun 2007
    Posts
    9
    Ok It works now, Thanks alot!

  6. #6
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    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