Here’s the deal I have this AS to make a dropmenu appear. It works ok, for a while… but then the buttons just disappear, and reappear, and so on…
Here’s the AS:
stop();
this.onEnterFrame = function() {
if (stripePress._width<80) {
stripePress._width += 5;
}
if ((boardPress._height<165) && (stripePress._width=80)) {
boardPress._height += 5;
boardPress._alpha += 10;
}
if (boardPress._height>25) {
AGENDA._alpha += 10;
}
if (boardPress._height>45) {
agendaSelect._alpha += 10;
}
if (boardPress._height>45) {
AGENDA2007._alpha += 10;
}
if (boardPress._height>65) {
AGENDA2006._alpha += 10;
}
if (boardPress._height>85) {
AGENDA2005._alpha += 10;
}
if (boardPress._height>105) {
AGENDA2004._alpha += 10;
}
if (boardPress._height>125) {
AGENDA2003._alpha += 10;
}
if (boardPress._height>145) {
NEWS._alpha += 10;
}
if (boardPress._height>=165) {
AWARDS._alpha += 10;
}
};
AGENDA._alpha = 0;
agendaSelect._alpha = 0;
AGENDA2007._alpha = 0;
AGENDA2006._alpha = 0;
AGENDA2005._alpha = 0;
AGENDA2004._alpha = 0;
AGENDA2003._alpha = 0;
NEWS._alpha = 0;
AWARDS._alpha = 0;
Anyone knows why this happens?
Any help will be welcome!