Flex Gumbo中如何给VideoPlayer全屏按钮增加一个ToolTip的例子
By Minidxer | September 2, 2009
接下来的例子演示了Flex Gumbo中如何通过给toolTip属性设置fullScreenButton参照,给VideoPlayer全屏按钮增加一个ToolTip。
下面是完整代码(或点击这里察看):
下面是main.mxml:
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application name="Spark_VideoPlayer_fullScreenButton_toolTip_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">
- <fx:Script>
- <![CDATA[
- private function init():void {
- videoPlayer.fullScreenButton.toolTip = "Toggle full screen";
- }
- ]]>
- </fx:Script>
- <s:SimpleText id="lbl"
- text="Roll over full screen button to see tool tip."
- fontWeight="bold"
- left="10"
- top="10" />
- <s:VideoPlayer id="videoPlayer"
- source="http://helpexamples.com/flash/video/cuepoints.flv"
- muted="true"
- horizontalCenter="0"
- verticalCenter="0"
- initialize="init();" />
- </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
Gumbo, VideoDisplay |
No Comments » |
Tags: fullScreenButton, Gumbo