Groups | Blog | Home
all groups > flash (macromedia) > february 2004 >

flash (macromedia) : Button Actions


Kevin Bradley
2/2/2004 8:36:00 PM
I am trying to build a dropdown menu that, when any given button is pressed, it displays a movie clip. This is not the problem. The issue I am having is that I would like the button to display a "lightbulb" when the movie clip is visible and hide the bulb when the clip's _visible, "0" state is true. Is there a way to coorelate the two even when the dropdown menu is not visible?


PierreAlain
2/2/2004 11:16:22 PM
different ways to do that.

You can put a clip"highlight1" under the button1.

now, you do

button1.on(press){
highlight1._visible = true;
}

and find a way when the clip is finished to put
hightlight1._visible = false;

--

Pierre Alain

pie@lifnet.com


"Kevin Bradley" <webforumsuser@macromedia.com> a écrit dans le message de
news:bvmcbg$971$1@forums.macromedia.com...
[quoted text, click to view]
pressed, it displays a movie clip. This is not the problem. The issue I am
having is that I would like the button to display a "lightbulb" when the
movie clip is visible and hide the bulb when the clip's _visible, "0" state
is true. Is there a way to coorelate the two even when the dropdown menu is
not visible?
[quoted text, click to view]

Silas Warner
2/3/2004 12:01:30 AM
[quoted text, click to view]
The best way to do this is to forget about the button itself.
Put a layer over the buttons in an underlying movie, and have
all the lightbulbs on this layer. Then use a function in this
layer that shows each lightbulb when its MC and its dropdown
item is visible, and hides it otherwise. You can call another
function from each of the dropdown actions to turn on and off
a flag in the underlying movie, and call the lightbulb show/hide
function. Similarly, anything that sets _visible on a movie
calls the show/hide function.

Silas Warner
AddThis Social Bookmark Button