- 浏览: 105776 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
zhongbiqing:
非常感谢楼主的分享!
HSQL -
chym_ouyj:
如果webService返回的是一个类,flex应该怎么处理呢 ...
FLex3基于WebService跟java通信(完整篇) -
JAVA小痴:
我也遇到同样的问题不知道怎么解决
FLex lcds和java之间通讯 容器启动时not found HttpFlexSession -
xanpeng:
我猜 flex 整合 struts 的策略是 flex 的 h ...
Flex中对Struts同时发出多个Httpservices
首先编写一个Test3.mxml应用程序 代码如下
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" borderColor="#F2DCD6" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#F5D9D9, #F4CCCC]">
<mx:Script>
<![CDATA[
public function onClick():void
{
if(stage.displayState=='fullScreen')
stage.displayState='normal';
else
stage.displayState='fullScreen';
}
]]>
</mx:Script>
<mx:Button click="onClick();" x="164" y="174" label="测试全屏" width="186" height="61" fontSize="19"/>
</mx:Application>
----------------------------------------------------------
还要修改index.template.html的文件具体如下:
----------------------------------------------------------
<!-- saved from url=(0014)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- BEGIN DeepLinking required section -->
<link rel="stylesheet" type="text/css" href="deeplinking/deeplinking.css" />
<!-- END DeepLinking required section -->
<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>
<!-- BEGIN DeepLinking required section -->
<script src="deeplinking/deeplinking.js" language="javascript"></script>
<!-- END DeepLinking 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);
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasRequestedVersion ) {
// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
// 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;
documentdocument.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}",
"allowScriptAccess","sameDomain",
"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}",
"allowScriptAccess","sameDomain",
"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="allowScriptAccess" value="sameDomain" />
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</noscript>
</body>
</html>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" borderColor="#F2DCD6" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#F5D9D9, #F4CCCC]">
<mx:Script>
<![CDATA[
public function onClick():void
{
if(stage.displayState=='fullScreen')
stage.displayState='normal';
else
stage.displayState='fullScreen';
}
]]>
</mx:Script>
<mx:Button click="onClick();" x="164" y="174" label="测试全屏" width="186" height="61" fontSize="19"/>
</mx:Application>
----------------------------------------------------------
还要修改index.template.html的文件具体如下:
----------------------------------------------------------
<!-- saved from url=(0014)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- BEGIN DeepLinking required section -->
<link rel="stylesheet" type="text/css" href="deeplinking/deeplinking.css" />
<!-- END DeepLinking required section -->
<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>
<!-- BEGIN DeepLinking required section -->
<script src="deeplinking/deeplinking.js" language="javascript"></script>
<!-- END DeepLinking 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);
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasRequestedVersion ) {
// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
// 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;
documentdocument.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}",
"allowScriptAccess","sameDomain",
"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}",
"allowScriptAccess","sameDomain",
"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="allowScriptAccess" value="sameDomain" />
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</noscript>
</body>
</html>
发表评论
-
Flex桌面程序如何打包以及安装
2009-07-25 15:49 2832首先去官网下载并装上AdobeAIRInstaller.exe ... -
TextInput的restrict属性验证控件
2009-07-13 11:30 1132<mx:TextInput id="userN ... -
Tree 默认打开节点
2009-07-10 20:09 1964<mx:Tree x="0" y=& ... -
Flex Timer的用法
2009-07-09 10:59 1748<?xml version="1.0" ... -
Flex DataGrid 列添加控件
2009-07-08 09:01 1921<mx:DataGrid id="showIp ... -
Flex DataGird
2009-07-06 18:04 1894实际上,DataGrid组件是 ... -
Flex中在弹出TitleWindow中动态刷新父面板
2009-07-02 15:23 3044Flex中在弹出TitleWindow中动态刷新父面板 例如在 ... -
Flex中对Struts同时发出多个Httpservices
2009-07-01 18:13 2136在执行查询时候需要同时发出三个Httpservice请求, ... -
控制IE浏览器中Flex界面的刷新以及后退前进按钮
2009-06-27 14:28 2446Flex页面中当我们按了 IE 上的后退/前进/刷新/关闭时就 ... -
FxStruts简介
2009-06-27 09:32 927Struts是基于JavaServlet、JavaB ... -
Flex动态添加控件 以及注册控件的监听事件(完整版)
2009-06-25 16:04 7617<?xml version="1.0" ... -
Flex HttpService的参数使用
2009-06-25 15:59 1550HttpService <!--提交修改信息--&g ... -
FLex3基于WebService跟java通信(完整篇)
2009-06-09 17:39 2045///////首先创建一个flex3的工程,代码如下///// ... -
Flex3通过HttpService与java通信
2009-06-09 11:13 1255mxml 文件: <mx:HTTPService ... -
Flex3国际化
2009-06-05 15:50 1429flex国际化的应用跟struts国际化差不多。 需要注意的是 ... -
FLex lcds和java之间通讯 容器启动时not found HttpFlexSession
2009-06-02 14:48 2505以前lcds和java tomcat启动还正常 今天就出现一个 ... -
flex application跳转问题
2009-05-29 18:27 1812var url:String = "指定你要跳转的a ...
相关推荐
通常,这可能是一个包含示例代码或资源的文件,你可以将其解压后参考其中的代码以进一步理解Flex全屏的实现。为了深入学习,建议结合具体的项目实践和查阅Adobe官方文档,以便更好地掌握Flex全屏技术。
本篇文章将详细介绍在Flex 2和Flex 3中如何实现全屏功能。 首先,让我们看看Flex 2的情况。在使用Flex Builder 2进行开发时,如果尝试直接使用`flash.display.StageDisplayState`类来实现全屏功能,可能会遇到找不...
5. Flex全屏事件: Flex提供了一些全屏相关的事件,如`fullScreen`、`fullScreenActivate`和`fullScreenDeactivate`,可以用来监听全屏状态的变化并做出相应操作。 6. Flex与硬件加速: 在全屏模式下,为了获得更...
#### 一、Flex全屏显示概述 Flex是一种用于构建跨平台桌面应用程序和移动应用程序的开源框架。它基于Adobe Flash平台,并利用MXML(标记语言)和ActionScript(脚本语言)来创建用户界面和控制逻辑。全屏显示是指将...
本篇文章将深入探讨如何在Flex 3.2中实现全屏模式,以及与之相关的知识点。 全屏模式是许多应用程序中一个常见的需求,它允许用户沉浸式地体验应用,消除其他界面元素的干扰。在Flex 3.2中,全屏模式的实现主要依赖...
标题和描述中提到的“flex全屏代码界面全屏”主要涉及的是在Flex框架下实现全屏显示的技术。Flex是一种开源框架,用于构建富互联网应用(RIA),可以在Flash Player或通过Adobe AIR部署到桌面。全屏功能是许多现代...
3. **分辨率适配**:全屏模式下,应用需要适应不同的屏幕分辨率,确保内容能正确显示。 4. **事件监听**:可以监听`fullScreen`事件,以便在进入或退出全屏模式时执行相应的处理代码。 5. **性能优化**:全屏模式...
在Flex开发过程中,实现全屏功能是常见的需求之一。本文将详细介绍如何通过点击按钮或双击操作来实现Flex应用的全屏切换。 ### 一、背景介绍 在Flex应用程序中,全屏模式可以让用户获得更沉浸式的体验。Adobe Flex...
本篇将详细讲解如何在Flex中实现窗口托盘和全屏功能。 首先,让我们关注"窗口托盘"这一概念。在桌面应用程序中,窗口托盘通常指的是系统任务栏上的一个小图标,当用户最小化程序窗口时,程序会缩到托盘区,而不是...
以下是一个关于Flex部分全屏实现的实例代码,主要涉及如何控制特定组件进入和退出全屏状态: ```xml 单个控件全屏测试"> 全屏" id="btnFullScreen" click="fullScreen();" color="#F41131"/> 全屏" id=...
3. **Spark组件**:Flex4引入了全新的Spark组件架构,相比Flex3的 Halo组件,Spark组件提供了更高级的外观和性能。在相册应用中,可能使用了`Image`组件来展示图片,`List`或`DataGrid`组件来显示图片列表。 4. **...
在本案例中,我们关注的是如何使用Flex实现一个FlV格式的视频播放功能。 FlV(Flash Video)是一种流媒体文件格式,广泛用于在线视频分享和播放。由于其小巧的体积和良好的兼容性,FlV在Flash Player支持的平台中...
这个压缩包文件"用JS实现网页里的Flash全屏功能.rar"显然包含了一种利用JavaScript(JS)和Adobe Flex技术来实现这一功能的方法。让我们深入探讨一下这个主题。 Flash全屏功能在Web上提供了一个更沉浸式的用户体验...
3. **全屏播放**:在Flex中实现全屏播放功能,主要涉及到`fullScreen`属性和`fullScreenEvent`事件。当用户触发全屏模式时,我们可以监听`fullScreen`属性的变化,然后调整VideoDisplay组件的尺寸以适应全屏模式。...
1. **Spark组件库**:Flex4引入了全新的Spark组件库,相比于Flex3中的 Halo 组件库,Spark组件提供了更好的样式和布局能力。电视墙效果通常会利用Spark组件,如VGroup或HGroup进行布局。 2. **布局管理器**:在创建...
4. **自定义组件**:虽然Flex提供了基础的MediaElement组件用于媒体播放,但为了实现百度影音的仿制效果,可能需要自定义组件,比如添加进度条、音量控制、全屏切换等高级功能。 5. **事件处理**:在Flex中,事件...
1. **选择器和布局**:通过CSS选择器定位翻页元素,并设置合适的布局模式(如`display: flex`或`grid`)以实现全屏显示。 2. **过渡效果**:利用`transition`属性定义翻页速度和样式变化,如页面旋转角度、透明度等...
2. **布局管理**:为了实现全屏显示,我们需要使用FLEX的布局管理器,例如AbsoluteLayout,让组件占据整个舞台。在MXML中设置`width="100%" height="100%"`可以让组件填充其父容器。 3. **图像加载**:FLEX提供了...
纯CSS3全屏响应式幻灯片特效是一种利用现代浏览器对CSS3特性的支持,创建出能在各种设备上自适应屏幕大小并具有平滑过渡效果的幻灯片展示方式。这种特效无需JavaScript,完全依赖CSS3来实现动态切换、动画效果和响应...
在Flex播放器的实现中,主要涉及以下几个关键技术点: 1. ActionScript编程:ActionScript是Flex的核心编程语言,类似于JavaScript,用于处理播放器的逻辑控制。例如,播放、暂停、停止、快进、快退等操作都需要...