summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/media9/files
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-03-27 21:42:31 +0000
committerKarl Berry <karl@freefriends.org>2013-03-27 21:42:31 +0000
commit02aa64ea1b6cd28f8217d06507a941c70d39dd9a (patch)
treeadf9d2cdba672ede96760270fa056c19518c53af /Master/texmf-dist/doc/latex/media9/files
parent086cac171c683caf6fa19aa9e4c3bbbaa06ceeb4 (diff)
media9 (27mar13)
git-svn-id: svn://tug.org/texlive/trunk@29530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/media9/files')
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/bird.mp3bin0 -> 735130 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/boutona.pdfbin0 -> 2363 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/boutonb.pdfbin0 -> 2203 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/boutonc.pdfbin0 -> 2364 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/boutond.pdfbin0 -> 2199 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/boutone.pdfbin0 -> 2236 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/boutonf.pdfbin0 -> 2208 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/malte.js42
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/malte.u3dbin0 -> 105696 bytes
-rw-r--r--Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml47
10 files changed, 75 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/media9/files/bird.mp3 b/Master/texmf-dist/doc/latex/media9/files/bird.mp3
new file mode 100644
index 00000000000..c9bee679cd6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/bird.mp3
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/boutona.pdf b/Master/texmf-dist/doc/latex/media9/files/boutona.pdf
new file mode 100644
index 00000000000..7ba15d820d7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/boutona.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/boutonb.pdf b/Master/texmf-dist/doc/latex/media9/files/boutonb.pdf
new file mode 100644
index 00000000000..605076e4070
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/boutonb.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/boutonc.pdf b/Master/texmf-dist/doc/latex/media9/files/boutonc.pdf
new file mode 100644
index 00000000000..adf016f9556
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/boutonc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/boutond.pdf b/Master/texmf-dist/doc/latex/media9/files/boutond.pdf
new file mode 100644
index 00000000000..a8170efa614
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/boutond.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/boutone.pdf b/Master/texmf-dist/doc/latex/media9/files/boutone.pdf
new file mode 100644
index 00000000000..a87b38d6fd9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/boutone.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/boutonf.pdf b/Master/texmf-dist/doc/latex/media9/files/boutonf.pdf
new file mode 100644
index 00000000000..b687d0aa2ef
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/boutonf.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/media9/files/malte.js b/Master/texmf-dist/doc/latex/media9/files/malte.js
new file mode 100644
index 00000000000..4d019e43a62
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/malte.js
@@ -0,0 +1,42 @@
+crank=this.scene.nodes.getByName("manivelle-1-1");
+cross=this.scene.nodes.getByName("croix-1-1");
+
+function cntrClockWise(){dir=1; speed=lastspeed;}
+function pause(){if(speed)lastspeed=speed; speed=0;}
+function clockWise(){dir=-1; speed=lastspeed;}
+function scaleSpeed(s){lastspeed*=s; if(speed) speed=lastspeed;}
+function origSpeed(){lastspeed=1; if(speed) speed=lastspeed;}
+
+Ocrank=new Vector3(-0.025, 0, 0);
+Ocross=new Vector3(0.025, 0, 0);
+
+axeZ=new Vector3(0,0,1);
+mx4x4=new Matrix4x4();
+
+var omega0=Math.PI; // init. angular frequency (half turn per second)
+var dir=1; // init. direction
+var speed=0; // speed multiplier
+var lastspeed=1;
+var alpha=0;
+
+timeEvHnd=new TimeEventHandler();
+timeEvHnd.onEvent=function(event) {
+ var dalpha=dir*speed*omega0*event.deltaTime;
+ if (dalpha!=0){
+ mx4x4.setIdentity();
+ mx4x4.rotateAboutLineInPlace(alpha,Ocrank,axeZ);
+ crank.transform.set(mx4x4);
+ with (Math){
+ if (alpha<3*PI/2) beta=0;
+ else beta=-atan(sin(alpha+PI/4)/(sqrt(2)-cos(alpha+PI/4)))+PI/4;
+ }
+ mx4x4.setIdentity();
+ mx4x4.rotateAboutLineInPlace(beta,Ocross,axeZ);
+ cross.transform.set(mx4x4);
+ alpha+=dalpha+2*Math.PI;
+ alpha%=2*Math.PI;
+ scene.update();
+ }
+}
+
+runtime.addEventHandler(timeEvHnd);
diff --git a/Master/texmf-dist/doc/latex/media9/files/malte.u3d b/Master/texmf-dist/doc/latex/media9/files/malte.u3d
new file mode 100644
index 00000000000..d4ea72aaa31
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/media9/files/malte.u3d
Binary files differ
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 f8f916e063c..09783ab38af 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 20130111 -->
+<!-- version 20130320 -->
<!-- -->
<!-- -->
<!-- The free Adobe Flex 4 SDK is required to compile -->
@@ -40,7 +40,8 @@
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
preinitialize="initialise(FlexGlobals.topLevelApplication.parameters);"
- applicationComplete="initSound();addeventlisteners();"
+ applicationComplete="initSound();addeventlisteners();
+ fadeTargets=new Array(playProgress, caption);"
creationComplete="initCallBacks();"
mouseDown="pause();setFocus();"
mouseUp="play();"
@@ -55,6 +56,8 @@
[Bindable] private var vol:Number=0.75;
[Bindable] private var pan:Number=0;
[Bindable] private var hideBar:Boolean=false;
+ [Bindable] private var fadeTargets:Array;
+ [Bindable] private var txtAlign:String;
private var snd:Sound;
private var sndCh:SoundChannel;
@@ -95,7 +98,7 @@
private function mouseOvrHnd(e:MouseEvent):void {
mouseIsOver=true;
fadeEffect.end();
- playProgress.alpha=1.0;
+ playProgress.alpha=caption.alpha=1.0;
}
private function mouseOutHnd(e:MouseEvent):void {
@@ -120,7 +123,7 @@
break;
case 37: //<--
fadeEffect.end();
- playProgress.alpha=1.0;
+ playProgress.alpha=caption.alpha=1.0;
if(e.ctrlKey){
pan=Math.max(-1,pan-0.025);
balance(pan);
@@ -140,7 +143,7 @@
break;
case 39: //-->
fadeEffect.end();
- playProgress.alpha=1.0;
+ playProgress.alpha=caption.alpha=1.0;
if(e.ctrlKey){
pan=Math.min(1,pan+0.025);
balance(pan);
@@ -187,7 +190,7 @@
}
}
- private function formatTime(s:Number):String {
+ private function formatLabel(s:Number):String {
s/=1000;
var hrs:Number = Math.floor(s / 3600);
var min:Number = Math.floor(s / 60 % 60);
@@ -203,6 +206,16 @@
if(sec<10) fmtd+='0';
fmtd += String(sec);
+ if(snd.id3.songName)
+ fmtd += ' '+ String.fromCharCode(0x2014) + ' ' + snd.id3.songName;
+ if(snd.id3.artist) fmtd += ' | ' + snd.id3.artist;
+ if(snd.id3.album) fmtd += ' | ' + snd.id3.album;
+
+ if(snd.id3.songName || snd.id3.artist || snd.id3.album)
+ txtAlign="start";
+ else
+ txtAlign="center";
+
return fmtd;
}
@@ -306,18 +319,18 @@
if(!playProgress.indeterminate) {
if(playing) {
playProgress.setProgress(sndCh.position,snd.length);
- playProgress.label=formatTime(sndCh.position);
+ caption.text=formatLabel(sndCh.position);
} else {
playProgress.setProgress(playResumePosition,snd.length);
- playProgress.label=formatTime(playResumePosition);
+ caption.text=formatLabel(playResumePosition);
}
}else{
if(playing) {
playProgress.setProgress(Math.random(),1);
- playProgress.label=formatTime(sndCh.position);
+ caption.text=formatLabel(sndCh.position);
} else {
playProgress.setProgress(snd.bytesLoaded,snd.bytesTotal);
- playProgress.label=formatTime(playResumePosition);
+ caption.text=formatLabel(playResumePosition);
}
}
}
@@ -330,11 +343,17 @@
</fx:Script>
<fx:Declarations>
- <s:Fade id="fadeEffect" target="{playProgress}" alphaFrom="1.0" alphaTo="0" duration="2000"/>
+ <s:Fade id="fadeEffect" targets="{fadeTargets}" alphaFrom="1.0" alphaTo="0"
+ duration="2000"/>
</fx:Declarations>
- <mx:ProgressBar width="100%" mode="manual"
- horizontalCenter="0" verticalCenter="0" labelPlacement="center"
- label="" id="playProgress" visible="{!hideBar}"
+ <mx:ProgressBar width="100%" height="100%" mode="manual"
+ labelPlacement="center" label="" id="playProgress"
+ visible="{!hideBar}"
+ />
+
+ <s:Label id="caption" width="100%" height="100%" verticalCenter="0"
+ paddingTop="2" fontWeight="bold" verticalAlign="middle" visible="{!hideBar}"
+ textAlign="{txtAlign}" paddingLeft="5"
/>
</s:Application>