PDA

View Full Version : Can you set "toggle" for button symbols?


benito
02-26-2005, 08:24 PM
Hi again,

is it possible to enable "toggling" on instances of (button) symbols?

With instances of the button, "toggle" can be set to true, and different graphics assigned for the "selected=true" and "selected=false" states, but I don't know if you can do this with (button) symbols.

Please help cos am desperate!! Thanks guys - you the greatest!
Benito

Flash Gordon
02-27-2005, 05:19 PM
var toggle:Boolean;
myOnButton.onRelease = function() {
toggle = true;
}
myOffButton.onRelease = function() {
toggle = false;
}

if (toggle) {
//do this
}else {
//do this
}

Does that help?

benito
02-27-2005, 07:43 PM
Thanks Flash - much appreciated!

I will try this right now