   [web] Detect When Flash Is On Screen
  I would imagine this has been asked before but several searches weren't useful.I would like to know how to detect when a Flash animation is visible on a website.  For example, there are sites that have several Flash animations vertically on the same page (like YouTube videos) but the animations don't start loading until the user has scrolled down to them on the page.  The ones you haven't seen yet don't start loading until you scrolled down further.At first I thought this may have had something to do with focus but the mouse doesn't necessarily have to be over the animation for it to recognize that it's "being looked at."No example needed.  Just the method or ActionScript function would be plenty to get me to search correctly.Actually, I looked again at a random YouTube video and YouTube does this with images, on the right hand side, under Related Videos.  Scroll down and more images load.  Related?Thanks!   
  You can calculate it with &#106avascript. You know the X and Y coordinates of the flash elements (link), you know how big the screen is and you know how far the user has scrolled down (scrollTop). Figuring out which flash elements are on the screen is then simple.   ;  Seems to me that Firefox might have some built in functionality along these lines. When I go to pages with embedded Flash content, it seems that the swf doesn't "start" until it scrolls into view. It might be specific to those few sites (perhaps a Wordpress plugin?), but it happens often enough that I think the browser is doing it.   ;  Thanks for the help.  In looking through the YouTube HTML code, I found this <div id="watch-related-discoverbox" class="watch-discoverbox" style="height:432px" onscroll="performDelayLoad('related')">and this<img title="vERY fUNNY dOGS 6" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="vimg90" onload="delayLoad(this, 'http://i3.ytimg.com/vi/FwHhg0zzsE8/default.jpg', 'related')" qlicon="FwHhg0zzsE8" alt="vERY fUNNY dOGS 6">It seems this is somehow done with a delayLoad function which I will google to death in a second and I hope it won't be too hard to implement with my limited knowledge.  Thank you both.   ;  delayLoad() and performDelayLoad() are functions written by Youtube. I suggest you take Firefox, install a &#106avascript debugger, install FireBug and go see how that function works :-)   