From 57831804ee8e7fcaeb03975ab9b5a6daa8ba04e8 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 22 Jun 2021 13:50:37 +0900
Subject: docassembly (new)

---
 .../latex/docassembly/examples/import-sound.tex    | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 texmf-dist/doc/latex/docassembly/examples/import-sound.tex

(limited to 'texmf-dist/doc/latex/docassembly/examples/import-sound.tex')

diff --git a/texmf-dist/doc/latex/docassembly/examples/import-sound.tex b/texmf-dist/doc/latex/docassembly/examples/import-sound.tex
new file mode 100644
index 00000000..19f7be11
--- /dev/null
+++ b/texmf-dist/doc/latex/docassembly/examples/import-sound.tex
@@ -0,0 +1,24 @@
+\documentclass{article}
+\usepackage{docassembly}
+\usepackage{eforms}
+%\usepackage{lipsum}
+
+\hypersetup{pdfpagemode=UseNone}
+
+% Look in the Adobe Acrobat JavaScript manual under the doc.importSound to see all the possible parameters.
+\begin{docassembly}
+\importSound({cName: "StarTrek", cDIPath: "sounds/trek.wav" });
+\executeSave();
+\end{docassembly}
+
+\begin{document}
+
+
+\begin{center}
+\pushButton[\CA{Star Trek}\S{S}\W{0}\AAmouseup{%
+    var s = this.getSound("StarTrek");\r
+    s.play();
+}]{stSound}{}{11bp}
+
+\end{center}
+\end{document} 
\ No newline at end of file
-- 
cgit v1.2.3

