FLEX实践—默认弹出窗口
本例中将实现当应用运行时不进行任何操作就先弹出窗口,点击关闭/点击窗口任一位置 时将关闭窗口
1)创建Component—DefaultWin.mxml (目录结构src/components/DefaultWin.mxml)
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
click="{this.visible=false}"
showCloseButton="true"
close="{this.visible=false}"
width="450"
height="253"
borderAlpha="0.8"
fontWeight="normal"
headerHeight="20"
borderColor="#EED9FB"
backgroundColor="#070707"
color="#FFFFFF"
cornerRadius="8"
creationComplete="init()">
<mx:Script>
<![CDATA[
private function init():void
{
move_up.yfrom=can.height - 6;
move_up.yTo=0 - content.height + 6;
move_up.repeatCount=0; //loop
move_up.repeatDelay=0; //loop time
move_up.duration=6000; //the time of scroll once
move_up.play();
}
private function move_pause():void
{
move_up.pause(); //pause
}
private function move_resume():void
{
move_up.resume(); //start from the pause position
}
]]>
</mx:Script>
<mx:Move id="move_up"
target="{content}"/>
<mx:VBox width="100%"
height="100%"
horizontalAlign="center">
<mx:HBox width="100%"
&n
相关文档:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Panel width="458" height="313" layout="absolute">
<mx:Label id="lbl" x="19" y="10" text="" width="171" height="20"/>
<mx:DataGrid id="dg" x="19" y="58" dataProvider="{arr}" editable="true" ......
1.下载eclipse的插件包:FB3_WWEJ_Plugin.exe
地址:http://trials.adobe.com/Applications/Flex/FlexBuilder/3/FB3_WWEJ_Plugin.exe
2.在任意目录建一个以下结构的目录:flex_plugin->eclipse->plugins和features
3.进入Flex Builder 3 的安装目录 将plugins目录下所有以 com.adobe 开头的文件或文件夹copy到上 ......
flash和flex针对不同的目的,提供了3种不同的坐标系。
全局的就是(stage级别的)
本地坐标系(组件级别的)
内容坐标系(相对于本地坐标系说的 ......
用FLEX如何取浏览器地址栏中的域名信息?我查找到两种方法:
第一种方法是用ExternalInterface.call('window.location.href.toString'),它的值就是地址栏中的域名
有以下几点需要注意:
1.当Flash和加载它的网页不同域时,需要在网页在 PARAM 或 EMBED 标签中进行设置AllowScriptAccess 为“always”
关于 ......