A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: 'Close window' AS command....?

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    23
    Hi,
    I was wondering if anyone knew what ActionScript I need to put inside a button for a 'close window' command. I've searched through the AS Reference Guide and can't find it anywhere in there.
    Thanks in advance.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    atlanta
    Posts
    1,008
    try

    onMouseEvent
    Press
    getURL (Javascript:Window.Close())

    "of course you'll need to put in all the appropriate tags in this script"

    see if this works

  3. #3
    Junior Member
    Join Date
    Apr 2001
    Posts
    23
    Hey, monstermash,
    Thanks for your help. Right after I posted my original message, I stumbled across my answer in the AS Reference Guide. I finally wound up using:

    on(release)
    fscommand("quit","true")

    Thanks a million for your reply.

    H.C.

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    atlanta
    Posts
    1,008
    no problem
    i'm glad you found an answer. i've heard that fs commands are somewhat tricky on occasion so you might also try the javascript method. good luck.

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