Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to pause Flash movie when browser movie not in focus

Status
Not open for further replies.

JeffStoker

Technical User
Joined
Aug 21, 2003
Messages
9
Location
US
I am trying to figure out how to communicate to a flash movie from an .html page to make the movie pause when the window that contains it is not in focus, and resume when the window regains focus.
I'm not too familiar with javascript, I'm more knowledgable with flash.

I can repetedly call a javascript function on the page from flash to check results, but don't know how to code a javascript function to check if page is currently in focus.

Will onBlur do the trick somehow?

I appreciate all suggestions.
Thanks
 
put the onblur in the body tag of the page.
 
I tried the onblur and haven't got it to work yet, but I think I can work that out.

If that will work, what is the opposite of onblur? To trigger a function when the window returns to focus?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top