PDA

View Full Version : can somebody explain this callback?



mediaholic
July 31st, 2003, 07:29 PM
what is this doing?
FPushButtonClass.prototype.executeCallBack = function()
{
this.handlerObj[this.clickHandler](this);
}
it is inside the FPushButtonClass and i think it is the solvation for my problem, which is:

i have bg_mc inside my btn_comp and i wont to assigne onPress hendler to it.
for example onPress change bg_mc_color();
No problem with this.
but wenn i then assign an onRelease handler on my btn_com
which should do something usefull like getUrl() or whatever
the bg_mc's onPress is deactivated becouse on btn comp is alraady a onRealease handler which (overrides)stops further execution.

HOW TO COPE WITH THIS?
i looked at FPushButtonClass to see how thay to that that comp is changing this own state PLUS eexecuting (on comp level) some other functionalaty

ANY IDEAS?