A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How do I make Flash close the browser window??

  1. #1
    Austrian Superstar
    Join Date
    Jun 2000
    Posts
    198
    I have a flash movie in a pop up window, I want to close the entire window by clicking a button in flash ....

    javascript isn' it?

    but how?

    thx


    PS I know this doesn't belong here, but it's really urgent!!

  2. #2
    wwwxlfcjbcom
    Guest

    solution

    on (release) {
    getURL("javascript:window.close()");
    }



    that should do it

    good luck

  3. #3
    Austrian Superstar
    Join Date
    Jun 2000
    Posts
    198
    first of all thank you

    does that work without inserting that js things into the head of the html document?

    ok I might just try it ...

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    106
    You shouldn't need to put an JS in the document, as it's just a simple js command. Only if you wanted to create a function should you need to put JS in the document.

    on (release) {
    getURL("javascript:self.close()");
    }

    should work too.

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