Flex 视频播放器全屏播放
第一步: *.mxml文件中
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
creationComplete="playLoad()" color="#0F7085" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]">
<mx:Script>
<!--[CDATA[
import mx.binding.utils.BindingUtils;
import mx.events.SliderEvent;
import mx.events.VideoEvent;
import mx.controls.Alert;
import flash.events.MouseEvent;
import mx.controls.HSlider;
import flash.display.*;
import mx.collections.ArrayCollection;
//全屏
private function full(evt:MouseEvent):void{
if (this.stage.displayState == StageDisplayState.FULL_SCREEN){
this.stage.displayState = StageDisplayState.NORMAL;
stage.scaleMode = StageScaleMode.NO_SCALE;
}
else{
this.stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;
}
}
]]-->
</mx:Script>
<mx:Button width="10%" label="全屏播放" click="full(event);"/>
</mx:Application>
第二步: 在Flex工程中html-template目录下的 index.template.html 文件,修改三处
<!-- 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" mce_href="history/history.css" />
<!-- END Browser History required section -->
<title>${title}</t
相关文档:
有时候我们需要在Flex应用中嵌入HTML代码,根据嵌入HTML要求的不同有以下三种方法:
1、Flex文本组件(Label、Text、TextArea)的htmlText属性支持一些基本的HTML代码,例如:
<mx:TextArea>
<mx:htmlText>
<!--[CDATA[
<p align="center"><font size="15" color="#3399ff"> ......
Flex调用远程天气服务
Flex提供天气服务
2010 年 01 月 08 日
使用Flex调用远端天气服务,从而提供可定制的天气服务。
获取远端天气服务API,关于天气内容一般是以xml形式提供。
调整界面布局
使用Flex的WebService组件调用远端天气服务接口
下载源码
......
经过反复的调试跟踪,在cairngorm框架不能地控制数据更新操作的触发顺序,无法保证同时读取“模型”层的点类(equip)、线类(link)实例对象的数据。
看来,只能在控制mxml控件中对控件进行控制了。 ......
Axis简介
技术前沿 2008-04-07 22:42 阅读104 评论0
字号: 大大 中中 小小
1.SOAP简介
企业系统内部各个系统之间的信息交换一直是一个难题,在过去有DCOM、CORBA等解决方案,但都不是很完美,不是太复杂就是有缺陷。现在则较流行SOAP(全称:Simple O ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="absolute" xmlns:ns1="com.component.*">
<mx:Script>
<![CDATA[
import com.component.DataHBox;
import com.component. ......