加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex中如何利用maintainAspectRatio属性使VideoDisplay保持载入

发布时间:2020-12-15 04:52:31 所属栏目:百科 来源:网络整理
导读:转载 http://blog.minidx.com/2009/06/15/2607.html ? ? xml version = " 1.0 " encoding = " utf-8 " ? mx:Application name = " VideoDisplay_maintainAspectRatio_test " ??????? xmlns:mx = " http://www.adobe.com/2006/mxml " ??????? layout = " vert

转载 http://blog.minidx.com/2009/06/15/2607.html

?

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application name="VideoDisplay_maintainAspectRatio_test"
  3. ??????? xmlns:mx="http://www.adobe.com/2006/mxml"
  4. ??????? layout="vertical"
  5. ??????? verticalAlign="middle"
  6. ??????? backgroundColor="white">
  7. ??? <mx:ApplicationControlBar dock="true">
  8. ??????? <mx:Form styleName="plain">
  9. ??????????? <mx:FormItem label="maintainAspectRatio:">
  10. ??????????????? <mx:CheckBox id="checkBox" />
  11. ??????????? </mx:FormItem>
  12. ??????? </mx:Form>
  13. ??? </mx:ApplicationControlBar>
  14. ??? <mx:VideoDisplay id="videoDisplay"
  15. ??????????? maintainAspectRatio="{checkBox.selected}"
  16. ??????????? source="http://helpexamples.com/flash/video/cuepoints.flv"
  17. ??????????? autoPlay="false"
  18. ??????????? width="200"
  19. ??????????? height="200"
  20. ??????????? click="videoDisplay.play();" />
  21. </mx:Application>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读