kempis555
Programmer
- Jan 2, 2001
- 77
Is it possible for one button to call the on(release) of another button?
the code in my button is:
on(release){
_root.other_button.onRelease;
}
Nothing happens though. I'm guessing that the onRelease can only be assigned to, not called.
The only way around this that I see is to pull the code out of other_button's onRelease, put it into a function, and have both buttons call that function. Bleah. I'm too lazy! There's too many buttons to do that to in this project!!!!![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
the code in my button is:
on(release){
_root.other_button.onRelease;
}
Nothing happens though. I'm guessing that the onRelease can only be assigned to, not called.
The only way around this that I see is to pull the code out of other_button's onRelease, put it into a function, and have both buttons call that function. Bleah. I'm too lazy! There's too many buttons to do that to in this project!!!!
![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)