Play video with VideoPlay
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="Video Viewer"> <mx:VideoDisplay id="videoViewer" source="assets/video.flv" volume="{volumeControl.value}"/> <mx:ControlBar> <mx:Label text="{videoViewer.playheadTime.toPrecision(2)}"/> <mx:Button label="Play" click="videoViewer.play( )"/> <mx:Button label="Pause" click="videoViewer.pause( )"/> <mx:Button label="Stop" click="videoViewer.stop( )"/> <mx:HSlider id="volumeControl" maximum="1" width="80"/> </mx:ControlBar> </mx:Panel> </mx:Application>