A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: exit swf in layered html

  1. #1
    designer
    Join Date
    May 2002
    Posts
    63

    quit swf in layered html

    hello,
    we have a full-screen swf file that is on the top layer of an html layered website. we would like the close button to exit the swf, but not close the html page. What code would we put on the close button? Remember, we don't want the html to clode, just the swf!
    Any help would be greatly appreciated!!!
    Thanks!
    Last edited by anniepbythesea; 11-04-2006 at 01:45 PM. Reason: something weird is happening with my computer!

  2. #2

  3. #3
    designer
    Join Date
    May 2002
    Posts
    63
    i am not sure how it is set up either. it's on a intranet site...in a layered html file. That's all of the information I have...except that the swf is on the top layer.

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    hi-

    Im not sure how or even IF it can be done through CSS (like unlayering it)

    but in the Flash movie itself.. you could make a 'close' button..and have the code

    Code:
    buttonInstance.onRelease = function() {
     removeMovieClip(layeredClip_mc);
    };
    or possibly look into using some javaScript to adjust/re-write the CSS in the HTML page.

  5. #5
    designer
    Join Date
    May 2002
    Posts
    63
    i think unloading the movie would work...in anycase, if it gets figured out, i'll let you know!

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