# When watching function

**URL:** <https://forum.kirupa.com/t/when-watching-function/255147>\
**Category:** Uncategorized\
**Created:** [March 19, 2008, 3:46pm UTC](https://forum.kirupa.com/t/when-watching-function/255147 "2008-03-19T15:46:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitchelvase](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mitchelvase](https://forum.kirupa.com/u/mitchelvase)\
**Post date:** [March 19, 2008, 3:46pm UTC](https://forum.kirupa.com/t/when-watching-function/255147/1 "2008-03-19T15:46:19Z")

</div>

Hi there,

Is there a way to find out when someone is watching to the swf?  
For example i have a swf loader but it preloades all swf behind each other [swf]-[swf]-[swf]

I can slide between each [swf] but the swf contains animations, they start playing when he preloads the [swf]'s. Is there a way i know when someone is watching the swf and then start the animation?

My first solution was a onmouse but it doesn’t work when you don’t have your mouse on the [swf].

Hope someone can help me!
