A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Closing window

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    4

    Thumbs up

    Hi All...

    Can someone help me with getting a button to close window. I was told the actioscript is like Javascript window.close but where do I put that? In Flash 5 there doesn't seem to be an action for this...

    Please help...

    Thanks
    Hichame

  2. #2
    Junior Member
    Join Date
    Sep 2001
    Posts
    6

    Smile

    la ya???
    til7as ma tayassar

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    If you want to close the window with a button use this:

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


    If you want the window to close automatically use this in the last frame of your movie:


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


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