在 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>
分享到:
相关推荐
NULL 博文链接:https://diding.iteye.com/blog/801041
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
5.将FusionChartsFlex\Charts下面的FusionCharts和FusionWidgets两个文件夹复制到flex_src目录下和web目录下,注意:在复制之前,先将FusionCharts文件夹的名字全部改成小写,即fusioncharts,也可以复制后在项目...
: npm install css-declarations用import { parse , stringify } from 'css-declarations'var values = parse ( ` color:/*red*/purple; -webkit-border-radius: 3px !important;;` )// => {color: 'purple', ...
议会问题是欧洲议会议员向其他欧盟机构和机构提出的问题。它们是议会对其他欧盟机构和机构的直接审查形式。书面声明是最多200字的文本,专门涉及欧盟范围内的问题。但是,它们并不约束议会,也就是说,不能将它们视...
FLEX 4.5手机开发实例,将公司内的工作人员目录管理。
" screeps " : " github:screepers/Screeps-Typescript-Declarations/dist/screeps.d.ts " } } 用法 注意:使用此API时,您无法按照Screeps教程中建议的方式来访问小兵: Game.creeps.Worker1 // This is not ...
先将下载包解压,然后分别安装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 ...
{ Public declarations } procedure AddLog(p_Info: string); //添加一条日志信息 procedure FlushLogFile; //日志内容立即写入文件 published { Published declarations } property LogFilePath: string; //...
#include <C8051F410.h> // SFR declarations //----------------------------------------------------------------------------- // Global Constants //------------------------------------------------------...
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...
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, ...
使用声明可能与DOM类型冲突,请考虑在您的tsconfig.json使用TypeScript 2.xx和以下设置: { "compilerOptions": { "module": "commonjs", "target": "es5", "experimentalDecorators": true, "lib": [ "es6...
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 ...
目的是创建一个易于理解的用于在Angular2 +中查询,创建,更新和删除OData资源。安装要安装软件包,请使用npm install --save odata-v4-ng进口import { AppComponent } from './app.component';import { ...
面向对象编程: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...
电子声明Liga.net杂志的d3数据可视化
32)..Changed: Descriptions of EurekaLog project options now list corresponding property names of TEurekaModuleOptions class. 33)..Changed: Default template of ...