I feel like such an idiot. This should have been a really simple operation and it’s turned into an hour-long issue. I’ve been trying to migrate from putting my button code on buttons and move the code onto the timeline instead. However in this instance it no workie :*(. The following code, specified for cancelMC affects every other button in this scene as if I’d written the code [FONT=Courier New]with(this){[/FONT].
If someone would please just scan this code, and/or look at the picture and tell me what key ingredient I am missing I would really appreciate it:
with(this.cancelMC){
onRollOver = function(){
this.ExplainMC.gotoAndStop("cancel");
}
onRollOut = function(){
this.ExplainMC.gotoAndStop("void");
}
onRelease = onReleaseOutside = function(){
_root.searchPanelMC.gotoAndStop(15);
gotoAndStop("user");
}
}
the code is on the timeline and so is the button (cancelMC). However, the code is on the first frame and the button exists on multiple frames thereafter. Does this matter? Does that put the button outside the scope of the code? I tried an onEnterFrame to no effect.