A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Closing Window after a movie

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    4

    Smile

    Hello all gurus. I am new to Actionscripting and was wondering if there is an action to close the window a Flash movie is playing in once it has run its course? Rather than looping it incessantly or having it stop and stare at the viewer. I would just like it to disappear. Any help would be greatly appreciated.
    Thanks in advance,
    Reeses

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    I hate when my movies stare at me !!

    Put this in the last frame of the movie:

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

  3. #3
    Junior Member
    Join Date
    Apr 2002
    Posts
    4
    Dear Mr. Estudioworks,
    That indeed worked. And I thank you very much. Sorry if I seem nitpicky, but when it reaches the command to close the window, a dialogue window opens stating that it is trying to close the window and the viewer has to click yes or no. Anyway around that, or is that just the way it is.
    Thanks again.
    Reeses

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    It should only do that if your closing the main browser window. Use a pop window:

    http://www.flash-db.com/PopUp/

    And the names ERIC

  5. #5
    Junior Member
    Join Date
    Apr 2002
    Posts
    4
    Thank you, Eric.
    I appreciate your time and knowledge.
    Reeses

  6. #6
    Owner of the ™ thread tublu's Avatar
    Join Date
    Nov 2000
    Posts
    2,430
    Originally posted by estudioworks


    And the names ERIC
    lol , Mr.Estudioworks .... makes you feel realy old , no ?

  7. #7
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    I am old !!

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