Flex 4中如何设置VideoPlayer全屏工具栏自动隐藏延迟的例子
By Minidxer | October 1, 2009
接下来的例子演示了Flex 4中如何通过fullScreenHideControlsDelay样式,设置VideoPlayer全屏工具栏自动隐藏延迟。
下面是main.mxml:
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application name="Spark_VideoPlayer_fullScreenHideControlsDelay_test"
- xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/halo">
- <mx:ApplicationControlBar width="100%" cornerRadius="0">
- <mx:Form styleName="plain">
- <mx:FormItem label="fullScreenHideControlsDelay:">
- <s:HSlider id="slider"
- minimum="1000"
- maximum="10000"
- dataTipPrecision="0" />
- </mx:FormItem>
- </mx:Form>
- </mx:ApplicationControlBar>
- <s:VideoPlayer id="videoPlayer"
- source="http://helpexamples.com/flash/video/cuepoints.flv"
- fullScreenHideControlsDelay="{slider.value}"
- horizontalCenter="0"
- verticalCenter="0" />
- </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
Gumbo, VideoPlayer |
No Comments » |
Tags: fullScreenHideControlsDelay, Gumbo