- 浏览: 257977 次
- 性别:
- 来自: 西安
文章分类
最新评论
-
qq820456878:
大神,您好,看了您的文章,深知小弟难望其项背啊。有一点不明白的 ...
Flex中捕获浏览器的前进、后退、刷新、关闭事件 -
skydove:
wushexin 写道楼主,详细说明网址打不开呀...可以去这 ...
RED5的Eclipse插件安装 -
JavaCFW:
JavaCFW 写道
FLEX利用FLASH MEDIA SERVER进行视频的在线录制和回放 -
JavaCFW:
FLEX利用FLASH MEDIA SERVER进行视频的在线录制和回放 -
daveyking:
客户端代码不太懂,是在哪写的?flash actionscri ...
抛弃LCDS和FMS,在tomcat下开发Red5应用(第三篇)-ApplicationAdapte
一.flex2的全屏代码
在仅仅使用Flex Builder2(我下载的是FLXB_2.0_Win_WWE.exe)的时候,写全屏代码竟然找不到flash.display.StageDisplayState,于是下载了Flex <st1:chsdate w:st="on" isrocdate="False" year="1899" day="30" islunardate="False" month="12">2.0.1</st1:chsdate>升级包(官方地址:http://download.macromedia.com/pub/flex/flex_builder/flexbuilder2_201updater.exe)和Flex 2.0.1 Hotfix 2(官方地址:http://www.adobe.com/support/flex/ts/documents/flex2_hf2/FB2_Hotfix2_Installer_Win.exe),然后再更新flashplayer9。(参考:http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html),下载了templates for Flex Builder,覆盖到flex项目的html-template目录下。全屏代码可以正常运行了。
- <!---->xml version="1.0" encoding="utf-8"?>
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
- backgroundGradientColors="[#8080ff, #400040]">
- <mx:Script>
- <!---->
- import flash.display.StageDisplayState;
- private function toggle():void{
- if(fs.selected == true){
- this.goFullScreen();
- } else {
- this.exitFullScreen();
- }
- }
- private function goFullScreen():void {
- stage.displayState = StageDisplayState.FULL_SCREEN;
- }
- private function exitFullScreen():void {
- stage.displayState = StageDisplayState.NORMAL;
- }
- ]]>
- mx:Script>
- <mx:Panel width="100%" height="100%" title="轻松实现全屏"
- layout="absolute">
- <mx:CheckBox label="全屏" id="fs" click="this.toggle()"
- horizontalCenter="0" verticalCenter="0"/>
- mx:Panel>
- mx:Application>
二.FLEX3全屏代码(转贴)
原文地址:http://www.duzengqiang.com/blog/article.asp?id=336 杜增强的博客
有网友说Felx2里面的全屏显示代码不能用了,因为flex3里面没有flash.display.StageDisplayState,
其实只要稍作修改就可以了
FullScree.mxml代码
<!---->
<mx:application xmlns:mx="&lt;a href=" www.adobe.com="">http://www.adobe.com/2006/mxml"
backgroundGradientColors="[#8080ff, #400040]">
<mx:script>
<!----> import flash.display.Stage;
private function toggle():void{
if(fs.selected == true){
this.goFullScreen();
} else {
this.exitFullScreen();
}
}
private function goFullScreen():void {
stage.displayState = 'fullScreen';
}
private function exitFullScreen():void {
stage.displayState = 'normal';
}
]]>
</mx:script>
<mx:panel title="轻松实现全屏" width="100%" height="100%"></mx:panel>layout="absolute">
<mx:checkbox id="fs" label="全屏" click="this.toggle()"></mx:checkbox> horizontalCenter="0" verticalCenter="0"/>
</mx:application>
index.template.html代码(html-template文件夹下)
<!---->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!---->
<link href="deeplinking/deeplinking.css" type="text/css" rel="stylesheet">
<!---->
<script src="AC_OETags.js" language="javascript"></script>
<!---->
<script src="deeplinking/deeplinking.js" language="javascript"></script>
<!---->
<style type="text/css">
body { margin: 0px; overflow:hidden }
</style>
<script language="JavaScript" type="text/javascript">
<!---->
</script>
<script language="JavaScript" type="text/javascript">
<!---->
</script>
<noscript></noscript>
增加allowFullScreen="true"这个参数
如下:
<!-- saved from url=(0014)about:internet -->
<html lang="en">
<!--
Smart developers always View Source.
This application was built using Adobe Flex, an open source framework
for building rich Internet applications that get delivered via the
Flash Player or to desktops via Adobe AIR.
Learn more about Flex at http://flex.org
// -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<!-- END Browser History required section -->
<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>
<!-- BEGIN Browser History required section -->
<script src="history/history.js" language="javascript"></script>
<!-- END Browser History required section -->
<style>
body { margin: 0px; overflow:hidden }
</style>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body scroll="no">
<script language="JavaScript" type="text/javascript">
<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);
// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if ( hasProductInstall && !hasRequestedVersion ) {
// DO NOT MODIFY THE FOLLOWING FOUR LINES
// Location visited after installation is complete if installation is required
var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
var MMredirectURL = window.location;
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowFullScreen","true",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "${swf}",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowFullScreen","true",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here. '
+ 'This content requires the Adobe Flash Player. '
+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
// -->
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="${application}" width="${width}" height="${height}"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="${swf}.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="allowFullScreen" value="true" />
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</noscript>
</body>
</html>
发表评论
-
Java程序员学习Flex和BlazeDS的十三个理由
2009-09-18 22:59 0本文列述了13个Java程 ... -
BrowserManager和HistoryManager的应用
2009-09-18 22:55 0BrowserManager是一个Singleton 管理器, ... -
Flex4相对于Flex3的变化
2009-09-18 22:19 2884以下内容转载自互联网,如侵犯您的权利,请来信告知! ... -
FLV播放器,完成度百分之七十
2009-09-11 09:17 1314完成度70% <object classid= ... -
Java和flash通信中数据的zlib压缩与解压缩
2009-04-08 22:23 0上篇文章介绍和如何在j ... -
Java和flash通信中数据的AMF3封装
2009-04-08 22:22 0Flash加载外部http数据有很多封装方式,常用的数据封装格 ... -
Java的RTMP客户端,可以用于RTMP的测试
2009-04-01 23:26 4023JUV Client 1.2 经过在Red5-0.6.3下测试 ... -
Flex中捕获浏览器的前进、后退、刷新、关闭事件
2009-03-31 21:46 9630如果不希望用户点击浏览器的前进、后退、刷新、关闭等误操作,可以 ... -
Text Layout Framework 聊天表情测试(依然不支持gif动画表情)
2009-02-17 22:59 3390(最后编辑于2009年2月20日17:24) 参考资料: ht ... -
使用Text Layout Framework实现图文混排
2009-02-16 11:45 86191.Flex Builder3要更新到3.0.2 http:/ ... -
从flex-ifram项目中看到的,在as中写js函数
2009-01-13 14:17 3486项目地址:http://code.google.c ... -
Flex的IFrame,解决在RIA中显示html的问题,非AIR
2008-12-31 15:00 0http://code.google.com/p/flex-i ... -
随记:flex发送XML到servlet
2008-10-16 15:58 3076一个Flex发送XML到Servlet,Servlet返回XM ... -
java后台的flex应用中电子白板文档共享的解决方法---用命令行转换任意文档为PDF和SWF
2008-07-31 22:57 8250前天安装了RED5,将OpenMeetings安装并运行一下, ... -
开启摄像头和关闭摄像头
2008-03-21 14:06 5582打开摄像头: Camera camera = Camera.g ... -
Flex的在线图片处理程序
2007-12-30 11:09 6131http://www.dreamtech.com.cn:908 ... -
Flex 概述
2007-11-11 09:13 3260一,概述 Flex是Adobe公司的支持RIA(rich ... -
讨论Flex的Package
2007-10-28 10:11 4348部分内容摘自ActionScript 3 Cookbook中文 ... -
FMS回调FLEX端的Function
2007-10-20 12:15 2622网络上找了很久这个资料,总算被解决了。 1.在FMS下新建一个 ... -
Flex连接FMS实现用户列表(使用SharedObject)
2007-10-20 10:08 31941.先在FMS的安装目录中添加自己的应用(例如我的目录D:\M ...
相关推荐
flex全屏代码界面全屏flex全屏代码界面全屏
Flex 组件全屏 部分全屏的实现 一般情况下,Flex全屏是指将整个舞台全屏,而不是待定的组件全屏.网上的例子也一般是指这种情况的. 下面发布一下,将特定组件全屏的代码:
这是原始的库了,里面少了一个针对按下ESC键的处理,这个在使用的时候可以自己加,另外一个问题就是由于这个库是FLEX3的,所以在FLEX4.0或以上的版本(使用的spark主题)的时候,需要修改类里面的Canvas为Group或者...
flex 在运行页面时的全屏效果,可以下载看看
flex 实现窗口托盘效果,托盘菜单可以直接退出或还原窗口.全屏和普通窗口状态任意切换,代码精简,功能简单有条理.
flex开发项目,application实现点击按钮界面全屏,或双击实现全屏,我搜集的方法集合。
点击空间可以在屏幕上全屏显示,效果很炫,很牛-- 点击空间可以在屏幕上全屏显示,效果很炫,很牛
flex iframe 支持在flash中嵌套入html jsp asp php等flex iframe 支持在flash中嵌套入html jsp asp php等flex iframe 支持在flash中嵌套入html jsp asp php等flex iframe 支持在flash中嵌套入html jsp asp php等flex...
NULL 博文链接:https://fonny.iteye.com/blog/523943
Flex 制作的视频播放器,同时可以支持全屏播放 ,主要是个人对全屏播放器的一些实例
util.as 文件中 修改goFullScreen 方法 有注释可以看到默认的时候是蒙上了一层黑色背景,测试的时候我给改成白色了
一般情况下,Flex全屏是指将整个舞台全屏,而不是待定的组件全屏.网上的例子也一般是指这种情况的.
VideoDisplay 播放视频、HSlider进度条、开始、暂停、停止、声音大小、全屏、当前时间/总时间,一个基本的页面在Flex Builder4.5下很快就能构建完成。在这里说明一下,“开始”,“停止”等这些按钮,我是用Image来...
1访问red5服务器的flv视频进行播放.(rtmp协议) 2播放器的多种功能实现:VideoDisplay 播放视频、HSlider进度条、开始、暂停、停止、声音大小、全屏、当前时间/总时间等;
实现主要功能如下 1. 多屏切换,这里主要...2. 单个视频双击全屏,整屏全屏 3. 右键菜单和屏蔽系统的右键菜单 主要是这个属性 params.wmode="transparent"; 4. flex与JS的交互,(通过js向flex中传递视频播放地址)
在浏览器下运行可以全屏模式的flash,js和flex实现
NULL 博文链接:https://tonyliu8731.iteye.com/blog/404609
flex版的flv播放器源码,可以调节亮度。设置大小。全屏。
html-css-flex __-__全屏登陆 该回购提供了有关如何使用css flex以及如何缩放全屏着陆图像或对象的基本网页教程的源代码。