// {
// _bindingEventDispatcher.addEventListener(type, listener, useCapture,
// priority, weakRef);
// }
MethodInfo addEventInfo = new MethodInfo();
addEventInfo.setMethodName("addEventListener");
Vector<Name> paramTypes = new Vector<Name>(5);
paramTypes.add(NAME_STRING);
paramTypes.add(NAME_FUNCTION);
paramTypes.add(NAME_BOOLEAN);
paramTypes.add(NAME_INT);
paramTypes.add(NAME_BOOLEAN);
addEventInfo.setParamTypes(paramTypes);
//addEventInfo.setFlags(ABCConstants.HAS_OPTIONAL);
addEventInfo.addDefaultValue(new PooledValue(false));
addEventInfo.addDefaultValue(new PooledValue(0));
addEventInfo.addDefaultValue(new PooledValue(false));
addEventInfo.setReturnType(NAME_VOID);
InstructionList addEventInsns = new InstructionList(10);
addEventInsns.addInstruction(OP_getlocal0);
addEventInsns.addInstruction(OP_getproperty, NAME_BINDING_EVENT_DISPATCHER);
addEventInsns.addInstruction(OP_getlocal1);