> I have the code for my multistate button and I got the sound in the
> channels to turn off and on with the soundEnabled code but the button
> rollover and clicks are still on..........PLEASE HELP!!!!
OK, so You're OK with the sound functionaltiy, right?

I should use two separate behaviors on a button like that (or on any button
for that matter)

1. a behavior that controls the state of the button itself (rollovers,
pressed, not pressed etc)
2. a behavior for what the button is supposed to control (in Your case the
sound on/off functionality)

So if I were you I'd rip out all the stuff from the behavior that relates to
nr 2 above (since that seems to work) and create a separate behavior from
this and attach it to the button sprite.

Then i would concentrate on the buttons behavior on the stage in another
behavior, and attach that to the sprite as well.
Since I dont exactly know how You would like the button to behave its hard
to give You directions but I beleive a #state property of some kind would
com in handy.

Bjarne

_______________________________________________________
If it's true that we are here to help others, then what exactly are the
OTHERS here for?

Bjarne Nyquist
Researcher, Lingo Programmer
The Interactive Institute, phone: +46-(0)8 783 24 74
www.interactiveinstitute.se


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to