Create action for objects or events
$pdfdoc
$type
$optlist
Creates an action which can be applied to various objects and events.