A flash mx2004 bug?

you’d better download the fla (it’s only about 110k) so you can see what happens, it’a bit hard to explain (plus, i don’t have a very strong english…):p: :p: :p:

you can find the fla here: http://xoomer.virgilio.it/space2000/WHY.zip

(open the fla)

there are two buttons, with two drop down menus; if you click “Formazione” (in the drop down of “CHIMICA”) you will notice nothing strange; it will continue to work properly (you will be taken to frame “formaz” and the drop down will disappear as soon as you leave its area).

the code for the button CHIMICA is here:

[AS]
onClipEvent (load) {
_global.l=false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)&& !l) {
l=true;
_root.DrDown2.gotoAndPlay(2);
this.gotoAndPlay(2);}
else if (!this.hitTest(_root._xmouse,_root._ymouse,true)&& l && !_root.DrDown2.hitTest(_root._xmouse,_root._ymouse,true)) {
l=false;
_root.DrDown2.gotoAndPlay(9);
this.gotoAndPlay(11);
}
}

on (press) {
_root.gotoAndStop(“chimica”);
}
[/AS]

if you put one more line (even a comment) between l=true; and _root.DrDown…; and you play the preview, you will notice that if you click on “Formazione” you will be taken to the frame “formaz”, but the drop down won’t disappear if you don’t pass over “CHIMICA” with your mouse (you will probably notice also that the animation of “CHIMICA” is not played).

please take a look at it… i’m goin’ cRaZy :crazy::crazy::crazy::hr:

thanks for your help