Multiple event handlers for one button


i'm trying create button 2 event handlers, such when roll-over button, submenu pops up, , when click button, go frame. feel shouldn't hard @ all, it's not working. below actionscript have tried. both event handlers work want them if alone, on(release) functionality not work when try put them together.(i have flash 8). help!

on (release) {
_root.gotoandstop("one1");
telltarget (_root.navigation) {
gotoandstop (1);
}
}
on (rollover) {

this.gotoandplay("links");
telltarget (_root.navigation.introduction) {
gotoandstop (1);
}
telltarget (_root.navigation.overview) {
gotoandstop (16);
}
telltarget (_root.navigation.coronary) {
gotoandstop (1);
}
}

this code ok, seems when u rollover on button, event fired , keeps on running time u r on it. think add
delete this.onrollover inside rollover event.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support