Monday, October 20, 2008

playing videos one after one

  1.  
  2.  
  3. http://www.adobe.com/2006/mxml" 
  4.         layout="vertical" 
  5.         verticalAlign="middle" 
  6.         backgroundColor="white" viewSourceURL="srcview/index.html"> 
  7.      
  8.         
  9.              private function reply():void 
  10.             { 
  11.                 videoDisplay.play(); 
  12.             } 
  13.            public function loadButton_click(evt:MouseEvent):void { 
  14.              var url:String = "http://www.helpexamples.com/flash/video/ 
  15. clouds.flv"; 
  16.                 videoDisplay.source = url; 
  17.             } 
  18.             private function unloadButton_click(evt:MouseEvent):void { 
  19.                 videoDisplay.close(); 
  20.                 videoDisplay.source = null; 
  21.                 videoDisplay.mx_internal::videoPlayer.clear(); 
  22.             } 
  23.         ]]> 
  24.      
  25.      
  26.          
  27.              
  28.                 
  29.                         minimum="0.0" 
  30.                         maximum="1.0" 
  31.                         value="1" 
  32.                         snapInterval="0.01" 
  33.                         liveDragging="true" /> 
  34.              
  35.              
  36.                  
  37.              
  38.          
  39.      
  40.     
  41.             backgroundAlpha="{slider.value}" 
  42.             backgroundColor="{colorPicker.selectedColor}" 
  43.             width="160" 
  44.             height="120" complete="reply()" /> 
  45.      
  46.         
  47.                 label="Load" 
  48.                 click="loadButton_click(event);" /> 
  49.         
  50.                 label="Unload" 
  51.                 click="unloadButton_click(event);" /> 
  52.      
  53.  

No comments: