The CommandInvoker tag is very similar to the MethodInvoker tag, but limited. It only allows specifying the generator class to instantiate. It will always call the method "execute" and pass the current event as its only argument. This tag is very useful when reusing Cairngorm commands.
<CommandInvoker generator="CommandClassName" />
The above example would be the same as doing the following in ActionScript code:
var myCommand:CommandClassName = new CommandClassName(); myCommand.execute(event);
only a short-cut tag, as the same can be accomplished with a MethodInvoker tag:
Note: when placed inside a MessageHandlers list, the command will receive a MessagingEvent.