Flex中如何利用videoPlayer属性和mx_internal命名空间,清除VideoDisplay控件内容

main.mxml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
  3. layout="vertical">
  4. <mx:VideoDisplayid="videoDisplay"
  5. source="http://www.helpexamples.com/flash/video/cuepoints.flv"/>
  6. <mx:Buttonlabel="pause"
  7. click="videoDisplay.pause();"/>
  8. <mx:Buttonlabel="clear"
  9. click="videoDisplay.mx_internal::videoPlayer.clear();"/>
  10. </mx:Application>

你可能感兴趣的:(xml,Flex,Flash,Adobe)