A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Closing a window in Flash

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    2

    Closing a window in Flash

    I need to make a button with the command to close a window. I have produced a selection of flash movies that open in a new window from the main title page and I need to make a button that closes the window down.

    Any help would be appricated. I'm looking for the actionscript that does this when you click on the button.

    thankyou!!

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Things have changed since Flash Player 8 so hear are some threads discussing.

    window.close

    http://flashkit.com/board/search.php?searchid=238126
    Last edited by enpstudios; 02-02-2006 at 08:14 AM.

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    2
    Sorry but the link you have posted does not work anymore. Can some tell me where I could find the info

    cheers!!!!!

  4. #4

  5. #5
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    DOUBLE POST
    Last edited by jasonsplace; 02-02-2006 at 11:05 AM. Reason: Double Posted
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  6. #6
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    You can't post links to search result pages because it doesn't save the results forever. I think you can still use:
    getURL("javascript:window.close();");
    but it is going to prompt the user as to whether or not they really want to close the window unless it was launched with JavaScript.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

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