<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:controls="com.fxcomponents.controls.*" 
    backgroundColor="#444444" themeColor="#628CAF" 
    backgroundGradientAlphas="{[0, 0]}"
    layout="absolute" viewSourceURL="srcview/index.html">
    <mx:Script>
        <![CDATA[
            
            [Bindable]
            private var source:String = "http://v5.lscache3.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=35&ipbits=0&signature=468B476CDCCAE3E7F498CE3D1312315B44AD1052.69A0B4EA20F8CF79B4DE4FAC289148AE407C447C&sver=3&expire=1246060800&key=yt1&factor=1.25&burst=40&id=cb960513f5595fda";
            
            private function clickHanlder():void{
                this.flvplayer.source=this.intoFlv.text;
                this.flvplayer.playheadTime=0;
                this.flvplayer.play();
                
            }
            
            private function clearHanlder():void{
                this.intoFlv.text="";
            }
            ]]>
    </mx:Script>
    <controls:FXVideo id="flvplayer" source="{source}"
        width="400" height="300" x="0" y="0" autoPlay="true"
        bufferTime="10" />
    
    <mx:TextInput id="intoFlv" width="290" x="10" y="355"/>
    <mx:Button label="播放" click="clickHanlder()" x="308" y="355"/>
    <mx:Button label="清除" click="clearHanlder()" x="364" y="355"/>
</mx:Application>