Graphics Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
    
        
    

    
         
        import org.osmf.events.MediaPlayerStateChangeEvent; 
        import org.osmf.events.TimeEvent; 
        protected function vpCompleteHandler(event:TimeEvent):void { 
             myTA.text = "Video complete - restarting." 
        } 
        protected function vpMediaPlayerStateChangeHandler(event:MediaPlayerStateChangeEvent):void { 
            if (event.state == "loading") 
                myTA.text = "loading ..."; 
            if (event.state == "playing") 
                myTA.text = "playing ..."; 
        } 
      
    

            source="rtmp://fmsexamples.adobe.com/vod/mp4:_cs4promo_1000.f4v"
        width="350" height="250" loop="true"
        complete="vpCompleteHandler(event);"
        mediaPlayerStateChange="vpMediaPlayerStateChangeHandler(event);" />