易截截图软件、单文件、免安装、纯绿色、仅160KB

flex右键弹出菜单(demo)

工程下的history文件夹下存放三个文件:index.template.html,rightClick.js,swfobject.js
src文件夹下存放CustomContextMenu.mxml文件。
1.CustomContextMenu.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
 applicationComplete="onAppCreated()" width="495" height="342" viewSourceURL="srcview/index.html">
 
 
  <!-- Define the menu data. This is an official example from livedoc -->
    <mx:XML format="e4x" id="myMenuData">
        <root>
            <menuitem label="MenuItem A">
                <menuitem label="SubMenuItem A-1" enabled="false"/>
                <menuitem label="SubMenuItem A-2"/>
            </menuitem>
            <menuitem label="MenuItem B" type="check" toggled="true"/>
            <menuitem label="MenuItem C" type="check" toggled="false"/>
            <menuitem type="separator"/>    
            <menuitem label="MenuItem D">
                <menuitem label="SubMenuItem D-1" type="radio" groupName="one" />
                <menuitem label="SubMenuItem D-2" type="radio" groupName="one" toggled="true"/>
           &nb


相关文档:

Flex的DataGrid中时间如何格式化

第一:拉个DateFormatter 控件
<mx:DateFormatter id="df" formatString="YYYY-MM-DD"/>
精确到时分秒则是YYYY-MM-DD H:NN:SS
第二:写个函数
    private function formatStart(item:Object,column:DataGridColumn):String{
            ......

flex获取url参数的一些写法

   在mxml的application类可以通过geturl获取当前url。获取url可以提供一个很好的方式对swf穿参数。在公司的项目中就大量的应用相关的技术。就和大家分享一下相关的写法,如果写不好就不要笑话哦。
   分析url参数类:
   package com.sunshine.framework.control
{
import com.sunshin ......

flex控件使用

Glow:
<?xml version="1.0" encoding="utf-8"?>  
<!-- Simple example to demonstrate the Glow effect. -->  
<!--   
    如何使用Flex Glow Effect   
  &n ......

flex 获得当前日期

    var formatter:DateFormatter = new DateFormatter();
    formatter.formatString = "YYYY-MM-DD JJ:NN:SS";
    Alert.show(formatter.format(new Date())); ......

Flex Metadata in ActionScript3

metadata最先开始于dotnet吧,叫做Attribute;然后java也紧随其后,叫做Annotaion;actionscript则叫做Metadata。其中dotnet与ActionScript的语法格式上都是相似的,如AS中的[Bindable]。在Java中则是用@XXX这样的语法,如@override。不过目的都是一个,给类或方法或属性增加meta data标记,从而实现对这些被标记的代码进行 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号