how to assign by code a function to FECCallFunction

Posted by wayann 
how to assign by code a function to FECCallFunction
April 23, 2009 10:30AM
Hi there I got this code:
sendFE = new FlashEff();
fieldContainer.addChild(sendFE);
sendFE._targetInstanceName = "myBtn";
var ccFunction:FECCallFunction = new FECCallFunction();
ccFunction.functionPath = "sendContactForm()";
sendFE.addCommand(ccFunction,"release");

when I press the button I got this error message:
ReferenceError: Error #1069: Property this not found on flash.display.Sprite and there is no default value.
at com.jumpeye.flashEff.command.callFunction::FECCallFunction/run()
at FlashEff/releaseCommandHandler()

what I'm doing wrong??
Re: how to assign by code a function to FECCallFunction
April 23, 2009 04:28PM
once again autoreply to my self, just in case someone is in the same situation at list he/she doesn't have to spend a few hours to figure it out, the solution:
ccFunction.functionPath = "root.sendContactForm";
instead of
ccFunction.functionPath = "sendContactForm()";
Re: how to assign by code a function to FECCallFunction
April 25, 2009 03:35PM
I still have a doubt, is this the best approach or there's a better way? anyone from flasheff maybe, can shed light on this thx in advance.
Sorry, you do not have permission to post/reply in this forum.