PDA

View Full Version : on(Release) in movieclips or gotoAndStop in buttons


owens2024
05-24-2005, 06:22 PM
I am using FlashMX 2004.

The basic thing I am trying to do is to have invisible "buttons" that when clicked are visible and remain visible. I have tried setting them up as buttons with the up and over states blank and using gotoAndStop("Down") in an on(Release) but this doesn't seem to work. Code below:

on (release){
if(!found2)
decrement();
found2 = true;
object2.gotoAndStop("Down");
}

I have also tried setting these buttons up as movieclips but found that I get an error when I try to use mouse functions on a movieclip.

Any help is appreciated.

Flash Gordon
05-24-2005, 07:00 PM
on (release){
if(!found2) {
decrement();
found2 = true;
object2.gotoAndStop("Down");
}
}

you missed the extra {}

owens2024
05-24-2005, 07:13 PM
I made this change but it still did not keep the button down.

owens2024
05-24-2005, 08:15 PM
I figured this out! I had to create a movie with a button inside of it...

Thanks!