# (FMX) AS Function issues with Mozilla FireFox

**URL:** <https://forum.kirupa.com/t/fmx-as-function-issues-with-mozilla-firefox/136375>\
**Category:** Uncategorized\
**Created:** [February 4, 2005, 6:32am UTC](https://forum.kirupa.com/t/fmx-as-function-issues-with-mozilla-firefox/136375 "2005-02-04T06:32:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pastey](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@pastey](https://forum.kirupa.com/u/pastey)\
**Post date:** [February 4, 2005, 6:32am UTC](https://forum.kirupa.com/t/fmx-as-function-issues-with-mozilla-firefox/136375/1 "2005-02-04T06:32:13Z")

</div>

There are 2 identical pictures, 1 monochrome and 1 colour on different layers (colour on top set to 0 alpha) inside an \_mc which itself is inside an \_mc - when you mouse over the mc the colour picture’s alpha increases and hence appears to ‘colour’ the \_mc in . . . Really simple right?

. . . and it works, but only when I preview it in flash (ctrl+enter)

when I view it in Mozilla Firefox I only see the colour image . . .

Uh, just went into IE and it works fine . . . . Oh well, if any one needs some code that works in IE here it is:

and if anyone has any thoughts why this fails in FF I’d be happy to listen (off to search more forums) . . .

Fa,  
PWB.

createEmptyMovieClip(“Galleries\_mc”, 1);

Galleries\_mc.createEmptyMovieClip(“Gallery1\_mc”, 1);

Galleries\_mc.Gallery1\_mc.\_y=300  
Galleries\_mc.Gallery1\_mc.createEmptyMovieClip(“monochrome\_mc”, 1);  
Galleries\_mc.Gallery1\_mc.monochrome\_mc.loadMovie(“images/Gallery1.jpg”);  
Galleries\_mc.Gallery1\_mc.createEmptyMovieClip(“color\_mc”, 2);  
Galleries\_mc.Gallery1\_mc.color\_mc.loadMovie(“images/Gallery1c.jpg”);

onLoad=function(){  
dir = 0;  
speed = 16;  
Galleries\_mc.Gallery1\_mc.color\_mc.\_alpha = 0  
Galleries\_mc.Gallery1\_mc.onRollOver = function(){  
dir = 1;  
}  
Galleries\_mc.Gallery1\_mc.onRollOut = function(){  
dir = -1;  
}  
useHandCursor = true;  
}

onEnterFrame=function(){  
temp = Galleries\_mc.Gallery1\_mc.color\_mc.\_alpha + speed\*dir;  
Galleries\_mc.Gallery1\_mc.color\_mc.\_alpha = Math.min(100,Math.max(temp,0))  
}
