I have a 5 button horizontal menu designed with a 2 rollover state and when any button is clicked opens a new movie with the same menu structure but with the clicked button on selected.
The issue comes when i go over the other buttons and they highlight too... but my selected button is still in the same state!!!, looks kinda redundant.
Could anybody give me a hand on how to switch that button wich is not the current sprinte but i know for sure its name on the Cast library, here is sample of one of the buttons code:
on mouseUp me
set the member of sprite the currentSpriteNum to member "menu_02-over"
cursor 280
end
on mouseDown me
set the member of sprite the currentSpriteNum to member "menu_02"
cursor 260
/* here is where i would like to able to switch the already hihhlihted button into the off state, so it wont look horrid */
play movie "why.dir"
end
on mouseLeave me
set the member of sprite the currentSpriteNum to member "menu_02"
cursor -1
end
The issue comes when i go over the other buttons and they highlight too... but my selected button is still in the same state!!!, looks kinda redundant.
Could anybody give me a hand on how to switch that button wich is not the current sprinte but i know for sure its name on the Cast library, here is sample of one of the buttons code:
on mouseUp me
set the member of sprite the currentSpriteNum to member "menu_02-over"
cursor 280
end
on mouseDown me
set the member of sprite the currentSpriteNum to member "menu_02"
cursor 260
/* here is where i would like to able to switch the already hihhlihted button into the off state, so it wont look horrid */
play movie "why.dir"
end
on mouseLeave me
set the member of sprite the currentSpriteNum to member "menu_02"
cursor -1
end