A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Window focus question

  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    52

    Window focus question

    I have a couple of buttons on my site that open up a new site in a _blank window. Is there a way to turn off my sound in the Flash site? Perhaps a way when the Flash site loses Focus?

    I would like it to be if the user is looking at the other site my sounds are off but are turned back on when the user returns to looking at my Flash site.

    thanks guys

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Why not with a stopAllSounds(); on the buttons themselves as a first action?

    Turning it back on, would possibly be more complicated...

    Maybe you should just set a global sound volume trigger to 0, and set it back to 100 whenever the popup(s) is closed. Otherwise, the main browser may get focus back, but the popups still being opened...

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