Flasher Archive

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


Subject: RE: [flasher] Making a menu
From: Paul Willoughby
Date: Wed, 21 Feb 2001 11:02:49 -0000

First off, the equality operator is '==' not '='. You don't really need a
variable or equality operator for this as you can just check the movieclip
property directly:

on (release) {
if (menu._visible) {
setProperty ("menu", _visible, 0);
} else {
setProperty ("menu", _visible, 1);
}
}


> -----Original Message-----
> From: IzzEddeen Al Karajeh [izzatengineer [dot] com (mailto:izzatengineer [dot] com)]
> Sent: 20 February 2001 11:33
> To: flasher from chinwag
> Subject: [flasher] Making a menu
>
>
> I'm planning to make a button that works like the windows
> start button, so
> when it is clicked a menu shows up, when it is clicked while
> the menue is
> visible then I want the button to hide it.
>
> 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]