Skip to content

API reference / Common / Engine types / Action

Type Alias: Action ​

ts
type Action = 
  | {
  goTo: {
     destination: Destination | null;
  };
}
  | {
  goToR: {
     file: string | null;
     destination: Destination | null;
     newWindow: boolean | null;
  };
}
  | {
  goToE: {
     destination: Destination | null;
     newWindow: boolean | null;
  };
}
  | {
  launch: {
     file: string | null;
     newWindow: boolean | null;
  };
}
  | {
  thread: {
     thread: number | null;
  };
}
  | {
  uri: {
     uri: string | null;
     isMap: boolean | null;
  };
}
  | {
  sound: {
     synchronous: boolean | null;
     repeat: boolean | null;
     mix: boolean | null;
     volume: number | null;
  };
}
  | "movie"
  | {
  hide: {
     targets: ActionHideTarget[];
     hide: boolean | null;
  };
}
  | {
  named: {
     name: string | null;
  };
}
  | {
  submitForm: {
     url: string | null;
     flags: number | null;
  };
}
  | {
  resetForm: {
     flags: number | null;
  };
}
  | {
  importData: {
     file: string | null;
  };
}
  | {
  javaScript: {
     script: string | null;
  };
}
  | "setOcgState"
  | {
  rendition: {
     operation: number | null;
  };
}
  | "trans"
  | "goTo3DView";

What activating a link or widget does (§12.6.4), one variant per action type (Table 198).