`
strugglesMen
  • 浏览: 111498 次
  • 性别: Icon_minigender_2
  • 来自: 杭州
社区版块
存档分类
最新评论

Flex 3 与 Flex 4 之间的区别---默认 Property 和 Declarations 标签

阅读更多

在 Flex 4 SDK 发布之前,Flex 语言允许 Application 根标签包含可视子代和非可视子代。可视子代与 addChild() 一起添加到 Application,非可视子代则作为属性声明。随后,表示新属性声明的非可视子代不可以作为 Application 的直接子代。您可以将这些非可视子代添加到 <fx:Declarations> 标签下。这包括效果、验证程序、格式化程序、数据声明和 RPC 类等非可视子代。以下是一个简短的示例:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"   
  xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Declarations>
        <s:Fade id="fadeEffect" target="{targetButton}" alphaFrom="1" alphaTo="0" />       
    </fx:Declarations>
    <s:Button id="targetButton" />
    <s:Button label="play effect" click="fadeEffect.play()" x="80" />
</s:Application>

分享到:
评论

相关推荐

    Flex4 Declarations in ActionScript

    NULL 博文链接:https://diding.iteye.com/blog/801041

    Flex4-in-a-day

    Flex 4 in a day About this document Introduction MXML 2009 Namespaces States New MXML Tags Declarations Library Definition Private Reparent DesignLayer Two-way data binding MXML Graphics...

    2-variable-declarations(变量声明2).pdf

    2-variable-declarations(变量声明2).pdf

    flex fusionchart 破解

    5.将FusionChartsFlex\Charts下面的FusionCharts和FusionWidgets两个文件夹复制到flex_src目录下和web目录下,注意:在复制之前,先将FusionCharts文件夹的名字全部改成小写,即fusioncharts,也可以复制后在项目...

    css-declarations:解析和字符串化CSS声明

    : npm install css-declarations用import { parse , stringify } from 'css-declarations'var values = parse ( ` color:/*red*/purple; -webkit-border-radius: 3px !important;;` )// =&gt; {color: 'purple', ...

    European Parliament - Questions and Declarations-数据集

    议会问题是欧洲议会议员向其他欧盟机构和机构提出的问题。它们是议会对其他欧盟机构和机构的直接审查形式。书面声明是最多200字的文本,专门涉及欧盟范围内的问题。但是,它们并不约束议会,也就是说,不能将它们视...

    FLEX 4.5手机开发实例

    FLEX 4.5手机开发实例,将公司内的工作人员目录管理。

    Screeps-Typescript-Declarations:* Screeps的TypeScript类型定义的存储库

    " screeps " : " github:screepers/Screeps-Typescript-Declarations/dist/screeps.d.ts " } } 用法 注意:使用此API时,您无法按照Screeps教程中建议的方式来访问小兵: Game.creeps.Worker1 // This is not ...

    pcre-8.12+nginx-1.11.2 在mac os x 10.9.2 安装nginx

    先将下载包解压,然后分别安装pcre和nginx 安装PCRE $ tar xvzf pcre-8.12 $ cd pcre-8.12 $ sudo ./configure --prefix=/usr/local $ sudo make $ sudo make install 安装Nginx $ tar xvzf nginx-1.11.2.tar $ cd ...

    Delphi编写的日志文件记录组件源程序

    { Public declarations } procedure AddLog(p_Info: string); //添加一条日志信息 procedure FlushLogFile; //日志内容立即写入文件 published { Published declarations } property LogFilePath: string; //...

    C8051F410定时器程序

    #include &lt;C8051F410.h&gt; // SFR declarations //----------------------------------------------------------------------------- // Global Constants //------------------------------------------------------...

    delphi2-delphi2010 全支持 dcu 装换 pas

    vcSet4: TEnumSet = [Club,Spade]; * All real types(Comp, Currency, Double, Extended, Real, Real48, Single) * All string types(AnsiString, ShortString, String, String[XX], WideString) * Array type...

    面向对象编程:C++与Java比较教程 英文版

    Chapter 3 - The Notion of a Class and Some Other Key Ideas Chapter 4 - Strings Chapter 5 - Using the Container Classes Chapter 6 - The Primitive Types and Their Input/Output Chapter 7 - Declarations, ...

    nativescript-ios-declarations:iOS的声明

    使用声明可能与DOM类型冲突,请考虑在您的tsconfig.json使用TypeScript 2.xx和以下设置: { "compilerOptions": { "module": "commonjs", "target": "es5", "experimentalDecorators": true, "lib": [ "es6...

    DE2-115开发板列子

    SEG7_LUT U3(.oSEG(oY_MOV1),.iDIG(y_latch[3:0])); SEG7_LUT U4(.oSEG(oY_MOV2),.iDIG(y_latch[7:4])); //instruction define, users can charge the instruction byte here for other purpose according to ps/2 ...

    odata-v4-ng:Angular的OData服务

    目的是创建一个易于理解的用于在Angular2 +中查询,创建,更新和删除OData资源。安装要安装软件包,请使用npm install --save odata-v4-ng进口import { AppComponent } from './app.component';import { ...

    面向对象编程:C++与Java比较教程 英文精简版

    面向对象编程:C++与Java比较教程 英文版的精简缩略版,方便pad、手机上阅读 Chapter 1 - Why OO Programming—Some Parallels with Things at Large Chapter 2 - Baby Steps Chapter 3 - The Notion of a Class and...

    e-declarations:Liga.net杂志的d3数据可视化

    电子声明Liga.net杂志的d3数据可视化

    EurekaLog_7.5.0.0_Enterprise

    32)..Changed: Descriptions of EurekaLog project options now list corresponding property names of TEurekaModuleOptions class. 33)..Changed: Default template of ...

Global site tag (gtag.js) - Google Analytics