dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: close pop-up window

  1. #1
    Registered User
    Join Date
    May 2004
    Location
    UK
    Posts
    15

    close pop-up window

    I put scripts below to make the button to close the pop-up window.

    on (release) {
    fscommand("quit");
    }

    ...it doesn't work...
    ...somebody help me!!

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    on (release) {
    getURL("javascript:self.close();");
    }

  3. #3
    Junior Member
    Join Date
    May 2000
    Posts
    22
    >> on (release) {
    >> getURL("javascript:self.close();");
    >> }

    A related question:

    I tried applying this to a button that is located in a LOADED movie (ie; _level3) with what I thought would be the appropriate changes. I tried this:

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

    and this:

    getURL("javascript:self.close(filename.html);");

    and both times got this error message: specified server cannot not found. Can anyone tell me what I'm doing wrong?

    thanks,
    Mike

  4. #4
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    The code is for closing windows, and it has to be in the window your closing. I don't think you can close one window from another. I could be wrong tho, and it would be a great trick if you could do it.

  5. #5
    Junior Member
    Join Date
    May 2000
    Posts
    22
    Well, I don't think I'll ever be that good, so what I did is have the "close window" button go to a point on the main movie timeline that has the close window command there - and that worked.

    Thanks for the explanation, it made me rethink the solution.

    - Mike

  6. #6
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    Hmmm, you just gave me an idea for closing popups from another page.

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