flex Alert组件用法
<?
xml
version
=
"1.0"
?>
<!-- Simple example to demonstrate the Alert control. -->
<
mx:Application
xmlns:mx
=
"http://www.adobe.com/2006/mxml"
>
<
mx:Script
>
<![CDATA[
import mx.controls.Alert;
import mx.events.CloseEvent;
// Event handler function uses a static method to show
// a pop-up window with the title, message, and requested buttons.
private function clickHandler(event:Event):void {
Alert.show("Do you want to save your changes?", "Save Changes", 3, this, alertClickHandler);
}
// Event handler function for displaying the selected Alert button.
private functi
相关文档:
使用资源最简单的方法就是通过选中你的flex工程,然后从右键的菜单中选择properties,选择Flex build path中的Source Path,然后把你.properties文件所在的目录添加进去。现在就可以在MXML中使用资源了,代码比较简单,首先假设你的资源名名字是messages_zh_CN.properties,那么定义好
<fx:Metadata ......
Testing Flex applications with FlexMonkey 1.0
Without automation, testing the UI components of your Flex
application can be tedious and time consuming. Adobe includes an
automation framework in Flex to enable developers to create automated
tests that operate at the GUI level. FlexMonkey
1.0 i ......
在项目中自定义一个CheckboxGroup,这个控件里面包含多个Checkbox想控制Checkbox的行为:所以使用查找一下帮助使用flex中经典方法:getDefinitionByName 函数的使用
public function getDefinitionByName(name:String):Object
返回参数 name 中指定的类引用
参数 name:String - 类名称
返回 Object - 返回参数 name 中 ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical" creationComplete="initApp()">
<mx:states>
<!--新建“index”State-->
<m ......
最近遇到了和别人分享某些模块代码的情况,因此想到了flex lib project,结果如下:
首先,在看很多文章中关于swc的介绍时,都基本说成是用于flex的 component或者assets的打包文件。类似于java 的jar包。当时就很奇 怪,难道他只能在flex project中使用?于是做了如下测试:
......