summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-11-26 23:41:33 +0000
committerKarl Berry <karl@freefriends.org>2012-11-26 23:41:33 +0000
commit45d95231c19a9b2a8fb1a35324bbb99213719f59 (patch)
treeabfe6225fd2796f7938f0ff53fc90d1b260385d7 /Master/texmf-dist/doc
parentf65ddfb995e6664c8bc89e4f68d51f9d1b48c15a (diff)
media9 (26nov12)
git-svn-id: svn://tug.org/texlive/trunk@28371 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/media9/ChangeLog5
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml27
-rw-r--r--Master/texmf-dist/doc/latex/media9/media9.pdfbin1623074 -> 1621554 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/media9.tex4
4 files changed, 35 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/media9/ChangeLog b/Master/texmf-dist/doc/latex/media9/ChangeLog
index ef7a4eecd51..35162e3c6f9 100644
--- a/Master/texmf-dist/doc/latex/media9/ChangeLog
+++ b/Master/texmf-dist/doc/latex/media9/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-26
+ * v0.17
+ * updated APlayer.swf with transparent background; poster is now inserted
+ into the page content stream, not in the appearance dictionary
+
2012-11-20
* v0.16
* fix: `transparent' option now working with Flash content, updated
diff --git a/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml b/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml
index 86c62753d3b..f35af9c1696 100644
--- a/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml
+++ b/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml
@@ -4,7 +4,7 @@
<!-- a FlashPlayer-10 compatible component for playing -->
<!-- MP3 audio files and streams. -->
<!-- -->
-<!-- version 20121002 -->
+<!-- version 20121123 -->
<!-- -->
<!-- -->
<!-- The free Adobe Flex 4 SDK is required to compile -->
@@ -44,6 +44,7 @@
creationComplete="initCallBacks();"
mouseDown="pause();setFocus();"
mouseUp="play();"
+ backgroundAlpha="0"
>
<fx:Script>
@@ -65,6 +66,7 @@
private var deltaSeek:Number;
private var currentTime:Number;
private var keyPressed:Boolean=false;
+ private var mouseIsOver:Boolean=false;
import mx.core.FlexGlobals;
private function initialise(flashVars:Object):void {
@@ -87,6 +89,18 @@
if(autoPlay) play();
}
+ import flash.events.MouseEvent;
+ private function mouseOvrHnd(e:MouseEvent):void {
+ mouseIsOver=true;
+ fadeEffect.end();
+ playProgress.alpha=1.0;
+ }
+
+ private function mouseOutHnd(e:MouseEvent):void {
+ mouseIsOver=false;
+ fadeEffect.play();
+ }
+
import flash.events.KeyboardEvent;
private function keyDnHnd(e:KeyboardEvent):void {
switch(e.keyCode) {
@@ -103,6 +117,8 @@
playResumePosition=(snd.length);
break;
case 37: //<--
+ fadeEffect.end();
+ playProgress.alpha=1.0;
if(e.ctrlKey){
pan=Math.max(-1,pan-0.025);
balance(pan);
@@ -121,6 +137,8 @@
deltaSeek*=1.1;
break;
case 39: //-->
+ fadeEffect.end();
+ playProgress.alpha=1.0;
if(e.ctrlKey){
pan=Math.min(1,pan+0.025);
balance(pan);
@@ -162,6 +180,7 @@
case 39: //-->
deltaSeek=Math.max(100,snd.length/10000);
keyPressed=false;
+ if (!mouseIsOver) fadeEffect.play();
break;
}
}
@@ -190,6 +209,8 @@
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
this.addEventListener(KeyboardEvent.KEY_DOWN, keyDnHnd);
this.addEventListener(KeyboardEvent.KEY_UP, keyUpHnd);
+ this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHnd);
+ this.addEventListener(MouseEvent.MOUSE_OVER, mouseOvrHnd);
}
private function setSource(src:String):void {
@@ -306,6 +327,10 @@
]]>
</fx:Script>
+ <fx:Declarations>
+ <s:Fade id="fadeEffect" target="{playProgress}" alphaFrom="1.0" alphaTo="0" duration="2000"/>
+ </fx:Declarations>
+
<mx:ProgressBar width="100%" mode="manual"
horizontalCenter="0" verticalCenter="0" labelPlacement="center"
label="" id="playProgress"
diff --git a/Master/texmf-dist/doc/latex/media9/media9.pdf b/Master/texmf-dist/doc/latex/media9/media9.pdf
index 514e7ab6e89..7784e3b0e23 100644
--- a/Master/texmf-dist/doc/latex/media9/media9.pdf
+++ b/Master/texmf-dist/doc/latex/media9/media9.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/media9.tex b/Master/texmf-dist/doc/latex/media9/media9.tex
index 3ac394f8087..2c6971a7118 100644
--- a/Master/texmf-dist/doc/latex/media9/media9.tex
+++ b/Master/texmf-dist/doc/latex/media9/media9.tex
@@ -669,6 +669,7 @@ parameter & description\\\hline\hline
/all/franceculturehautdebit.mp3
&autoPlay=true
},
+ transparent,
url % refers to APlayer.swf, not to `source' flashvar!
]{\color{blue}\fbox{Listen live to Radio France Culture}}{%
http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/%
@@ -680,6 +681,7 @@ parameter & description\\\hline\hline
source=http://mp3.live.tv-radio.com/franceculture/all/franceculturehautdebit.mp3
&autoPlay=true
},
+ transparent,
url
]{\color{blue}\fbox{Listen live to Radio France Culture}}{%
%APlayer.swf%
@@ -693,6 +695,7 @@ http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/contrib/media9/players/
source=http://www.openbsd.org/songs/song49.mp3
&autoPlay=true
},
+ transparent,
url
]{\color{blue}\fbox{Listen to OpenBSD 4.9 release song.}}{%
http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/%
@@ -704,6 +707,7 @@ http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/contrib/media9/players/
source=http://www.openbsd.org/songs/song49.mp3
&autoPlay=true
},
+ transparent,
url
]{\color{blue}\fbox{Listen to OpenBSD 4.9 release song.}}{%
http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/contrib/media9/players/APlayer.swf%