summaryrefslogtreecommitdiff
path: root/tex/context/base/back-swf.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/back-swf.mkiv')
-rw-r--r--tex/context/base/back-swf.mkiv61
1 files changed, 61 insertions, 0 deletions
diff --git a/tex/context/base/back-swf.mkiv b/tex/context/base/back-swf.mkiv
new file mode 100644
index 000000000..82c95f898
--- /dev/null
+++ b/tex/context/base/back-swf.mkiv
@@ -0,0 +1,61 @@
+%D \module
+%D [ file=back-swf,
+%D version=2009.12.31,
+%D title=\CONTEXT\ Backend Macros,
+%D subtitle=Shockwave Experiment,
+%D author=Hans Hagen \& Luigi Scarso,
+%D date=\currentdate,
+%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
+%C
+%C This module is part of the \CONTEXT\ macro||package and is
+%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
+%C details.
+
+% This is only a placeholder that demonstrates the usage of swf
+% resources.
+
+\endinput
+
+\starttext
+
+\startluaparameterset [swf:myset:display:1]
+ toolbar = true,
+ preview = "assets/images/posterframes/SPT_14-16_Ra_01_PN_LE01_02_DoLikeMeLater_posterframe.jpg",
+ -- preview = "t:/sources/cow.pdf",
+ -- preview = "t:/sources/hacker.jpg",
+ open = "click", -- click page focus
+ close = "focus", -- click page focus
+\stopluaparameterset
+
+\startluaparameterset [swf:myset:resources:1]
+ paths = {
+ "assets"
+ },
+ files = {
+ -- "somename_1"
+ -- "somename_1"
+ }
+\stopluaparameterset
+
+\startluaparameterset [swf:dolikemelater:resources]
+ paths = {
+ "assets"
+ },
+\stopluaparameterset
+
+\starttext
+
+% preview=swf:myset:display:1
+% controls=swf:myset:controls:1
+% resources=swf:myset:resources:1
+
+\placefigure
+ {flash demo}
+ {\startcombination[2*2]
+ {\externalfigure[trasf1.swf][width=0.45\textwidth,height=0.25\textheight]} {one}
+ {\externalfigure[trasf2.swf][width=0.45\textwidth,height=0.25\textheight]} {two}
+ {\externalfigure[trasf3.swf][width=0.45\textwidth,height=0.25\textheight]} {three}
+ {\externalfigure[trasf4.swf][width=0.45\textwidth,height=0.25\textheight]} {four}
+ \stopcombination}
+
+\stoptext