http://blog.minidx.com/2008/08/06/1227.html good
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" verticalAlign="top"
horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
public function showVideo():void{
var videoWindow:videoDisplayTitleWindow=new videoDisplayTitleWindow();
PopUpManager.addPopUp(videoWindow,this,true);
PopUpManager.centerPopUp(videoWindow);
}
]]>
</mx:Script>
<mx:Button id="btn" click="showVideo()" label="video" verticalCenter="true"/>
</mx:Application>
=======================================================
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" title="videoShow" showCloseButton="true"
close="windowClose()">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable]
private var TitleText:String = "<b>VideoDisplay Control:</b>" + "/n" + "Use the buttons to control the video.";
public function windowClose():void{
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:VBox backgroundColor="0x323232" width="100%" height="100%" backgroundAlpha="1" horizontalAlign="center"
borderThickness="4" borderColor="0x545454" cornerRadius="4" borderStyle="solid" paddingTop="5" >
<mx:Text width="75%" color="0xffffff" textAlign="center" htmlText="{TitleText}"/>
<!--使用html方式显示标题-->
<mx:VideoDisplay id="myVid" height="146" width="220" source="assets/sample_vid.flv" autoPlay="false"/>
<mx:HBox>
<mx:Button label="Play" color="0x00000" click="myVid.play();"/><!--控制按钮-->
<mx:Button label="Pause" color="0x00000" click="myVid.pause();"/>
<mx:Button label="Stop" color="0x00000" click="myVid.stop();"/>
</mx:HBox>
</mx:VBox>
</mx:TitleWindow>