The number of the action can be retrieved from any action-creating method, such as CreateJavaScriptAction.
See the OnControlMouseEnter property for examples.