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!

detecting focus of a movie

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

How would I write an if statement that detects if a flash movie has lost or has focus, ie: say a popup has opened on top.

Thanks.
 
This would have to be done in Javascript - this would send a message back to Flash from Javascript and set a variable flag when the movie loses focus...

window.onblur = function() {
var movie = window.document.movie
movie.SetVariable("/changed", "true");
}

It's hard to write specific code without knowing the movie name and exactly what you need the script to do but there's some good stuff here:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top