trigger method

dynamic trigger(
  1. dynamic name,
  2. dynamic val
)

Implementation

trigger(name, val)
{
  print('custom trigger'+name);
  this.dispatchEvent(THREE.Event( { 'type': name,'action':val }) );
}