IT기술/Flex

flex 16 VideoDisplayTest

dobbby 2008. 11. 21. 16:53
반응형




VideoDisplayTest.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" x="0" y="0">
 <mx:Panel width="350" height="350" layout="absolute" horizontalCenter="0" verticalCenter="0" title="video">
 <mx:VideoDisplay horizontalCenter="0" verticalCenter="-30" id="video" autoPlay="false">
  <mx:source>http://micropilot.tistory.com/attachment/ok68.flv</mx:source>
 </mx:VideoDisplay>
 <mx:ProgressBar indeterminate="false" horizontalCenter="0" verticalCenter="105" height="20" labelPlacement="center" source="video" themeColor="#FF0090" width="310"/>
 <mx:Button label="멈춤" horizontalCenter="-55" verticalCenter="135" height="20" width="50" click="video.pause()"/>
 <mx:Button label="재생" horizontalCenter="0" verticalCenter="135" click="video.play()" height="20" width="50"/>
 <mx:Button label="정지" horizontalCenter="55" verticalCenter="135" click="video.stop()" height="20" width="50"/>
 </mx:Panel>
</mx:Application>

반응형