再試試一個



  1. <?xml version="1.0"?>


  2. <!-- http://blog.flexexamples.com/2010/04/29/rewinding-a-video-when-changing-the-selected-item-in-the-mx-accordion-container-in-flex-4/ -->


  3. <s:Application name="Spark_NavigatorContent_hide_test"


  4.         xmlns:fx="http://ns.adobe.com/mxml/2009"


  5.         xmlns:s="library://ns.adobe.com/flex/spark"


  6.         xmlns:mx="library://ns.adobe.com/flex/mx">




  7.     <mx:Accordion id="acc"


  8.             left="40" right="40" top="40" bottom="40">


  9.         <s:NavigatorContent label="Video 1"


  10.                 width="100%" height="100%"


  11.                 hide="vidPlay1.seek(0);">


  12.             <s:VideoPlayer id="vidPlay1"


  13.                     source="http://helpexamples.com/flash/video/water.flv"


  14.                     autoPlay="false"


  15.                     left="0" right="0" top="0" bottom="0" />


  16.         </s:NavigatorContent>


  17.         <s:NavigatorContent label="Video 2"


  18.                 width="100%" height="100%"


  19.                 hide="vidPlay2.seek(0);">


  20.             <s:VideoPlayer id="vidPlay2"


  21.                     source="http://helpexamples.com/flash/video/clouds.flv"


  22.                     autoPlay="false"


  23.                     left="0" right="0" top="0" bottom="0" />


  24.         </s:NavigatorContent>


  25.         <s:NavigatorContent label="Video 3"


  26.                 width="100%" height="100%"


  27.                 hide="vidPlay3.seek(0);">


  28.             <s:VideoPlayer id="vidPlay3"


  29.                     source="http://helpexamples.com/flash/video/cuepoints.flv"


  30.                     autoPlay="false"


  31.                     left="0" right="0" top="0" bottom="0" />


  32.         </s:NavigatorContent>


  33.         <s:NavigatorContent label="Video 4"


  34.                 width="100%" height="100%"


  35.                 hide="vidPlay4.seek(0);">


  36.             <s:VideoPlayer id="vidPlay4"


  37.                     source="http://helpexamples.com/flash/video/caption_video.flv"


  38.                     autoPlay="false"


  39.                     left="0" right="0" top="0" bottom="0" />


  40.         </s:NavigatorContent>


  41.     </mx:Accordion>




  42. </s:Application>

TEST

0 張貼意見:

張貼留言

Copyright 2010 Yita電腦調校日誌
Lunax Free Premium Blogger™ template by Introblogger