A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Actionscript to close an open Flash window?

  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    63
    I have a flash program that, when run on its own, runs in full screen. I need to have an option to exit the program. What Actionscript would I add to the program (whether it be to a button, or in the script itself) for the SWF file to close itself?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    For a web page-

    getURL("javascript:self.close()");

    for Projector-

    fscommand, quit.

    ~mgb

  3. #3
    Member
    Join Date
    Jun 2002
    Posts
    63
    Thanks, worked perfectly!

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