A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Close Window button

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    6
    Could someone point me to a Close Window button tutorial? I can't seem to find one on Flashkit

    Thanks

  2. #2
    Junior Member
    Join Date
    May 2001
    Posts
    8
    what kinda window do you wanna close?

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    6

    Close Window

    from within flash 4 My main page will have a button to open up a new window. I want a close window button as well as the web browswer default. To see what I mean you can go to http://www.runeseeker.com , click on friends, then click on a friend's icon

    thanks, John

  4. #4

    Smile How To Close A Window (besides the little X)

    Heres a neat little trick I learned after much frustration.

    From the properties menu for the "close Button" within your flash movie/page you wish to close(pics of friends):
    On (Release)
    Get URL ("closer.htm")
    End On

    Have another page called (get this) :
    "closer.htm"

    The HTML code for that page is:
    <HTML>
    <BODY ONLOAD="self.close()">
    </HTML>

    That's It!
    The GET URL function will replace the current window with the auto-close window. Thats why it works!
    Make sure the button that houses the GET URL("closer.htm") is already a popup window(or a new window) because the closer.htm page will close itself ir-regardless!!!

    Good Luck,
    Atreau

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