Changeset 99bf52b83c230e484b240bbe1fd8101b4ef32e64 for flex
- Timestamp:
- 03/08/11 17:45:04 (15 months ago)
- Parents:
- 3297694796b1587d45038bec5ddc044ab42309af
- Children:
- 203878536177cd28b07ad67e22d389f2169a4419
- git-committer:
- Robin Gareus <robin@gareus.org> / 2011-03-08T18:45:04Z+0100
- Location:
- flex/derrick-av
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
flex/derrick-av/main.html
rf35a3cd r99bf52b 16 16 </div> 17 17 18 <div style="margin: 0 auto; width: 640px;">18 <div style="margin: 0 auto; width:720px;"> 19 19 <!--[if !IE]> --> 20 <object type="application/x-shockwave-flash" data="main.swf " width="640" height="460">20 <object type="application/x-shockwave-flash" data="main.swf?t=2" width="720" height="420"> 21 21 <!-- <![endif]--> 22 22 23 23 <!--[if IE]> 24 <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="640" height="4 60"24 <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="640" height="420" 25 25 codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> 26 26 <param name="movie" value="main.swf" /> -
flex/derrick-av/main.mxml
r3297694 r99bf52b 1 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 2 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 3 width="640" height="460" 4 layout="vertical" 3 width="720" height="420" 4 layout="absolute" 5 backgroundColor="#ffffff" 6 backgroundGradientColors="#ffffff, #ffffff" 5 7 verticalAlign="middle" 6 backgroundColor="#dddddd"7 8 creationComplete="onAppInit()" > 8 9 … … 37 38 password="f78b64c9e0f2ea24fddce2b0d809cb2855fed1a6"; 38 39 countrycodes = new ArrayCollection( [ 39 { id:'XX ', label:'Please select your country..'},40 { id:'XXX', label:'Please select your country..'}, 40 41 { id:'AF', label:'AF (AFGHANISTAN)'}, 41 42 { id:'AX', label:'AX (ALAND ISLANDS)'}, … … 295 296 myinit(); 296 297 } else { 297 Alert.show(' invalid Passphrase. Please try again or contact mcmovie@digitalrumors.net',298 Alert.show('Invalid Passphrase. Please try again or contact mcmovie@digitalrumors.net', 298 299 'Invalid Password', mx.controls.Alert.OK); 299 300 } … … 311 312 te.enabled=false; 312 313 tg.enabled=false; 313 Alert.show('You do need a camera for live streaming.\nPlease connect one and then reload this Page. ',314 Alert.show('You do need a camera for live streaming.\nPlease connect one and then reload this Page. It may also be that the camera is currently in use by another application: please close that app and reload.', 314 315 'No camera detected', mx.controls.Alert.OK); 315 316 return … … 330 331 } 331 332 332 private function changeSize(event:Event):void {333 if (event.currentTarget.selectedIndex == 0)334 cam.setMode(640,480,25);335 if (event.currentTarget.selectedIndex == 1)336 cam.setMode(768,576,25);337 if (event.currentTarget.selectedIndex == 2)338 cam.setMode(800,600,25);339 340 Alert.show(341 'Note that only few webcam models support all sizes.\n'+342 'Camera size is now:\n'+343 'width:'+cam.width+'\n'+344 'height:'+cam.height+'\n'+345 'fps:'+cam.fps+'\n'346 , 'Camera Info', mx.controls.Alert.OK);347 }348 349 333 private function securityErrorHandler(event:SecurityErrorEvent):void { 350 334 ; … … 471 455 textAlign: center; 472 456 } 457 .welcome { 458 font-size: 12; 459 <!--textAlign: justify;--> 460 } 473 461 .footer { 474 462 font-size: 8; 475 463 textAlign: right; 476 color: # f0fff0;477 padding-right: 20;464 color: #aaaaaa; 465 padding-right: 40; 478 466 } 479 467 </mx:Style> 480 468 481 <mx:Text styleName="center" >469 <mx:Text styleName="center" width="100%" x="0" y="4"> 482 470 <mx:htmlText> 483 <![CDATA[<font size="2 2px">McLuhan A/V recorder</font>]]>471 <![CDATA[<font size="20px">McLuhan A/V recorder</font>]]> 484 472 </mx:htmlText> 485 473 </mx:Text> 486 <mx:Spacer height="12" /> 487 488 <mx:Box direction="vertical" width="100%" id="welcome" visible="true"> 489 <mx:Text width="100%"> 490 <mx:htmlText> 491 <![CDATA[Welcome, .. ]]> 492 </mx:htmlText> 493 </mx:Text> 494 <mx:Box direction="horizontal" > 495 <mx:Label width="50" text="Password:" /> 496 <mx:TextInput id="passwd" width="150" text="PASSWORD" restrict="a-zA-Z0-9," maxChars="24" enter="doauth(event)"/> 497 </mx:Box> 498 <mx:Text width="100%"> 499 <mx:htmlText> 500 <![CDATA[By entering I agree that all recorded material will be allowed to be distributed in terms of the Creative Commons Share alike license.]]> 501 </mx:htmlText> 502 </mx:Text> 503 <mx:Button id="btauth" click="doauth(event)" label="Enter"/> 474 475 <mx:Box direction="vertical" width="100%" height="350" id="welcome" visible="true" x="0" y="30"> 476 <mx:Spacer height="100%"/> 477 <mx:Box direction="horizontal"> 478 <mx:Text width="550" styleName="welcome"> 479 <mx:htmlText> 480 <![CDATA[Welcome,<br><br>By entering, you agree that all recorded footage will be licensed in terms of the Creative Commons Attribution-ShareAlike License (see http://creativecommons.org/licenses/ for details).<br>Should you have any questions please refer to http://www.mcluhangalaxy.net or contact mcmovie@digitalrumors.net.]]> 481 </mx:htmlText> 482 </mx:Text> 483 <mx:Image source="@Embed(source='mcluhanlogo.png')" horizontalAlign="right"/> 484 </mx:Box> 485 <mx:Spacer height="100%"/> 486 <mx:Box direction="horizontal" width="100%"> 487 <mx:Label text="Passphrase:" /> 488 <mx:TextInput id="passwd" width="200" text="" displayAsPassword="true" 489 restrict="a-zA-Z0-9," maxChars="24" enter="doauth(event)"/> 490 <mx:Button id="btauth" click="doauth(event)" label="Enter"/> 491 <mx:Spacer width="100%"/> 492 <mx:Image source="@Embed(source='ccbysa.png')" horizontalAlign="right"/> 493 </mx:Box> 494 <mx:Spacer height="100%"/> 495 504 496 </mx:Box> 505 497 506 <mx:Box direction="horizontal" width="100%" id="mainrec" visible="false">507 <mx:VBox width=" 224" height="320">508 <mx:Text width=" 180">498 <mx:Box direction="horizontal" width="100%" height="350" id="mainrec" visible="false" x="0" y="40"> 499 <mx:VBox width="330" height="100%"> 500 <mx:Text width="320"> 509 501 <mx:htmlText> 510 502 <![CDATA[<b>Step 1</b>: Set Meta-Data]]> … … 513 505 <mx:Box direction="horizontal" > 514 506 <mx:Label width="50" text="Title:" /> 515 <mx:TextInput id="tt" width=" 150" text="Title" restrict="a-zA-Z0-9, " maxChars="128"/>507 <mx:TextInput id="tt" width="270" text="Title" restrict="a-zA-Z0-9, " maxChars="128"/> 516 508 </mx:Box> 517 509 <mx:Box direction="horizontal" > 518 510 <mx:Label width="50" text="Author:" /> 519 <mx:TextInput id="ta" width=" 150" text="me" restrict="a-zA-Z0-9, " maxChars="128"/>511 <mx:TextInput id="ta" width="270" text="me" restrict="a-zA-Z0-9, " maxChars="128"/> 520 512 </mx:Box> 521 513 <mx:Box direction="horizontal" > 522 514 <mx:Label width="50" text="Email:" /> 523 <mx:TextInput id="te" width=" 150" text="@" restrict="a-zA-Z@0-9._%+-" maxChars="128"/>515 <mx:TextInput id="te" width="270" text="@" restrict="a-zA-Z@0-9._%+-" maxChars="128"/> 524 516 </mx:Box> 525 517 <mx:Box direction="horizontal" > 526 518 <mx:Label width="50" text="Tags:" /> 527 <mx:TextInput id="tg" width=" 150" text="me" restrict="a-zA-Z0-9, " maxChars="128"/>519 <mx:TextInput id="tg" width="270" text="documentary, interview, example" restrict="a-zA-Z0-9, " maxChars="128"/> 528 520 </mx:Box> 529 521 <mx:Box direction="horizontal" > 530 522 <mx:Label width="50" text="County:" /> 531 <mx:ComboBox id="cc" width=" 150" dataProvider="{countrycodes}" labelField="label"/>523 <mx:ComboBox id="cc" width="270" dataProvider="{countrycodes}" labelField="label"/> 532 524 </mx:Box> 533 525 <mx:Spacer height="100%"/> 534 <mx:Text width=" 180">526 <mx:Text width="320"> 535 527 <mx:htmlText> 536 <![CDATA[<b>Step 2</b>: Configure the camera: right-click (mac: ctrl+click) → Settings... → Camera-tab . Select camera from the drop-down menu, Microphone-tab,choose audio-input and adjust volume; maximize it so that it just does not enter the red area.]]>528 <![CDATA[<b>Step 2</b>: Configure the camera: right-click (mac: ctrl+click) → Settings... → Camera-tab: Select camera from the drop-down menu. Microphone-tab: choose audio-input and adjust volume; maximize it so that it just does not enter the red area.]]> 537 529 </mx:htmlText> 538 530 </mx:Text> 539 531 <mx:Spacer height="100%"/> 540 <mx:Text width=" 180">532 <mx:Text width="320"> 541 533 <mx:htmlText> 542 534 <![CDATA[<b>Step 3</b>: Start web-cam. Move your position so that your face is in the center.]]> … … 544 536 </mx:Text> 545 537 <mx:Button id="bc" toggle="true" change="camBt(event)" label="Start Camera"/> 538 </mx:VBox> 539 540 <mx:VBox width="340" height="100%"> 541 <mx:VideoDisplay id="video" width="340" height="280" /> 546 542 <mx:Spacer height="100%"/> 547 <mx:Text width=" 180">543 <mx:Text width="340"> 548 544 <mx:htmlText> 549 545 <![CDATA[<b>Step 4</b>: Start recording]]> … … 552 548 <mx:Button id="br" toggle="true" change="recBt(event)" label="Start Recording"/> 553 549 </mx:VBox> 554 <mx:VideoDisplay id="video" width="340" height="280" />555 550 </mx:Box> 556 551 557 <mx:Spacer height="100%" /> 558 559 <mx:Text width="100%" styleName="footer"> 552 <mx:Text width="100%" styleName="footer" x="0" y="400"> 560 553 <mx:htmlText> 561 554 <![CDATA[© 2011 CITU.fr, robin@gareus.org]]>
