Ok, I have a simple action where the position of the mouse causes a section of the stage to fade out or in with the use of an alpha mask inside a 2nd mc. For some reason, the fade doesn’t work. When triggered by the mouse position, the alpha just pops out or in w/o the keyframed fade. To make things more curious, if I remove the quotes from around either “fadeout” or “fadein” in the code below, the “fadeout” portion will work, but not the “fadein”. Have tried a number of purmutations of script w/ no luck. (the_parent. stuff is because the whole movie gets loaded into a master movie.)
Any help greatly appreciated!!
this is the script on the mc containing the alpha fade.
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_parent._xmouse>660) {
_parent.emptyMC.gotoAndPlay(“fadeout”);
} else if (_parent._xmouse<660) {
_parent.emptyMC.gotoAndPlay(“fadein”);
}
}
But the point of the mask is to have a changing alpha. Half of the operation works (fadeout), but only when fadein is not in “”. I wanted to attach an example.fla, but that option is not available in this reply form. I’ll (sorry) repost with the .fla.
wait! you can attach your fla… just click here <a href=“newreply.php?s=&action=newreply&threadid=21653”><img alt=“post reply button large” src=“images/post_reply.gif” border=“0” width=“90” height=“25”></a>
i’m going crazy!! my fla is 296k, but that’s over the max size, so i zip it and it’s 212k, but that’s still over the max size. what’s the point of attaching when you can’t attach a tiny fla. Any suggestions??
the problem was that the script executed the gotoAndPlay over and over again, that’s why it didn’t fade. i set up a variable (flag) so it only is executed once.
!flag checks if the variable is equal to 0 (false) flag checks if the variable is equal to 1 (true)