Flex 4中如何设置VideoPlayer全屏工具栏自动隐藏延迟的例子

By Minidxer | October 1, 2009

接下来的例子演示了Flex 4中如何通过fullScreenHideControlsDelay样式,设置VideoPlayer全屏工具栏自动隐藏延迟。



下面是main.mxml:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application name="Spark_VideoPlayer_fullScreenHideControlsDelay_test"
  3.         xmlns:fx="http://ns.adobe.com/mxml/2009"
  4.         xmlns:s="library://ns.adobe.com/flex/spark"
  5.         xmlns:mx="library://ns.adobe.com/flex/halo">
  6.  
  7.     <mx:ApplicationControlBar width="100%" cornerRadius="0">
  8.         <mx:Form styleName="plain">
  9.             <mx:FormItem label="fullScreenHideControlsDelay:">
  10.                 <s:HSlider id="slider"
  11.                         minimum="1000"
  12.                         maximum="10000"
  13.                         dataTipPrecision="0" />
  14.             </mx:FormItem>
  15.         </mx:Form>
  16.     </mx:ApplicationControlBar>
  17.  
  18.     <s:VideoPlayer id="videoPlayer"
  19.             source="http://helpexamples.com/flash/video/cuepoints.flv"
  20.             fullScreenHideControlsDelay="{slider.value}"
  21.             horizontalCenter="0"
  22.             verticalCenter="0" />
  23.  
  24. </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Topics: Gumbo, VideoPlayer | No Comments » | Tags: ,

Search Posts