# Using Mouse coordinates to control Swf alpha

**URL:** <https://forum.kirupa.com/t/using-mouse-coordinates-to-control-swf-alpha/215611>\
**Category:** flash\
**Created:** [February 8, 2007, 6:29pm UTC](https://forum.kirupa.com/t/using-mouse-coordinates-to-control-swf-alpha/215611 "2007-02-08T18:29:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thehive](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@thehive](https://forum.kirupa.com/u/thehive)\
**Post date:** [February 8, 2007, 6:29pm UTC](https://forum.kirupa.com/t/using-mouse-coordinates-to-control-swf-alpha/215611/1 "2007-02-08T18:29:35Z")

</div>

I have a main page which call a couple of swfs into blank MCs. I’d like the swfs to fade when the mouse enters a certain area of the main swf.

I have tried a simple conditional statement using the ymouse property to control the alpha of the MCs holding the swfs. They fade once and never reappear.

Do I need to instruct flash to check the mouse position after every frame and if so what language should I use to do that?

Thanks for any help.
