# Weird behavior on MAC

**URL:** https://forum.kirupa.com/t/weird-behavior-on-mac/238575
**Category:** flash
**Created:** [September 12, 2007, 7:05pm UTC](https://forum.kirupa.com/t/weird-behavior-on-mac/238575 "2007-09-12T19:05:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ombilicus](https://avatars.discourse-cdn.com/v4/letter/o/9e8a1a/32.png) [@ombilicus](https://forum.kirupa.com/u/ombilicus)
#### Post date: [September 12, 2007, 7:05pm UTC](https://forum.kirupa.com/t/weird-behavior-on-mac/238575/1 "2007-09-12T19:05:39Z")

</div>

HI,  
I’m running a script that continuously draws a line (drawing API).  
the script is in a onEnterframe event.  
For some reason, and only on a MAC, when the browser loses focus and you pull up another program window in front, then you come back to the flash movie, it somehow kept calculating and displays a full block of red (my lineTo style is red) as if filling up a portion of the stage with lines everywhere (look more like a fill).  
I can’t find anything on stage or MC focus. i.e is there a way of executing the enterframe only when the stage has focus? Javascript focus would not work I think.  
Any ideas?
