Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] Making a menu
From: Muzak
Date: Wed, 21 Feb 2001 01:12:52 -0000

In flash 5 '=' is used to set a value and '==' is used to check something

on (release) {
if (menu_visible==1) {
menu._visible = 0;
menu_visible = 0;
} else {
menu._visible = 1;
menu_visible = 1;
}
}

You don't really need a variable to keep track of the fisible state of the menu MC.
This should work fine:

on (release) {
if (_root.menu._visible==1) {
_root.menu._visible=0;
} else {
_root.menu._visible=1;
}
}

hth,
Muzak
----- Original Message -----
From: "IzzEddeen Al Karajeh" <izzatengineer [dot] com>

> I used a variable to hold the status of the menu, (menu_visible),
>
> This is the code I used for the button:
> __________
> on (release) {
> if (menu_visible=1) {
> setProperty ("menu", _visible, 0);
> menu_visible = "0";
> } else {
> setProperty ("menu", _visible, 1);
> menu_visible = "1";
> }
> }
> ___________
>
> The button is not working with me
>
> Any suggestions?
> Thanks..




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]