A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: close window

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Posts
    122
    whats the code u put in the actionscript to close a window after u press a button....???

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    7
    standalone:

    FS Command ("quit", "")

    quit can be selected from the dropdown "for standalone player"

    In browser:

    call a javascript that contains: window.close();

    Originally posted by not a fridge
    whats the code u put in the actionscript to close a window after u press a button....???

  3. #3
    Senior Member
    Join Date
    Oct 2000
    Posts
    122
    hmm, u dont realise - im a moron - i need it spelling out to me!
    its just a flash movie going into an htm file....gofigr

  4. #4
    Junior Member
    Join Date
    Aug 2000
    Posts
    7
    Create a HTML file containing your flash file
    inside the HTML file add th following

    <script>
    function CloseWindow()
    {
    window.close();
    }
    </script>

    in your flash file put

    On mouseRelease
    GetURL("javascript:CloseWindow()")
    end

  5. #5
    Senior Member
    Join Date
    Oct 2000
    Posts
    122
    ta

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