I have 20 buttons, eahc a different color. I want to perform the same actions on each button when I mouseover and then out, so I assumed a function would be the best choice in case some things needed changing later. When I try the same code that works just fine within a button:
placed inside of a function in the scene-frame instead of the button, though, (where I thought functions had to be created) I get this error:Code:on(rollOver) { varColorName = "Orange"; } on(rollOut){ varColorName = ""; }
Can someone at least point me in the right direction? I am not new to Flash but I am obviously new to scripting in Flash. The scripting feels so different from VB for me.Mouse events are permitted only for button instances




Reply With Quote